I’ve been attempting to obtain the URL in order to share it on Google Plus. I’ve experimented with different codes, but the issue is that the ID value is concealed within the URL, making it impossible to directly pass the link in the "a href" tag. The most recent code I’m using is:
<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>
Only is visible in the URL, while the rest are hidden through local storage.
When I attempt to share this page on Google Plus, only the path gets passed, resulting in me only seeing the home page. How can I retrieve the complete URL? Any assistance would be greatly appreciated as I am new to JavaScript and AngularJS.