我想要获取URL,以便我可以在Google plus中分享它。我已经尝试通过各种代码。问题是ID值隐藏在url中,所以我不能直接在链接中传递url链接。我想最新的代码是:#标签后没有采取网址的href
<a href="https://plus.google.com/share?url=https://abc.co/#!/newsdetail?Newsid={{item.Newsid}}" onclick="javascript:window.open(this.href,'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;">
<img src="xyz.png" alt="Share on Google+" style="height:22px"/>
</a>
在URL唯一https://abc.co/#!/newsdetail是可见的,其余都是通过localStorage的隐藏。
现在,当我尝试在谷歌加上分享此页面时,只有路径https://abc.co正在通过,我只能看到主页。我怎样才能得到完整的网址。请帮帮我。我是新的JavaScript和angularjs。
看一看这个,https://stackoverflow.com/questions/23370773/google-plus -api-share-url-functionality-removed-hash-fragments-from-urls – demonofthemist