I am trying to generated a URL:
Get-it-Together-Stavros-Zenonos-amp;-Katerina-Ko?viewmode=0
Where you can see "amp;" after that url is not generating
Like below:
Get-it-Together-Stavros-Zenonos-amp
See my code below which is generating URL
<a class="fb-xfbml-parse-ignore" href="https://twitter.com/intent/tweet?url=<%=HTMLEncode(CMS.DocumentEngine.DocumentContext.CurrentDocument.AbsoluteURL)%>" onClick="return popup(this, 'notes')">
<img src="<%# Eval("twittericon") %>" alt="twitter icon" />
</a>
Could you help what i need to do to generate full URL?
The issue is because you're using HTMLEncode on the value in the URL. Instead you should use URLEncode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With