30Jul

Link to Twitter intent tweet error 500, percent % character

A simple fix about special characters and especially the % when program a tweet link and experience the error twitter.com is currently unable to handle this request.

Twitter intent with % sign is not working because it needs to be encoded

If you experience the message “This page isn’t working twitter.com is currently unable to handle this request. HTTP ERROR 500”, this might be because you have a % character in the tweet copy?

ie: Share on Twitter

<a class="social-share__icon" href="https://twitter.com/intent/tweet?text=
Around 95% of Northern California [...]&url=https://www.xxxxxxxxx.com" target="_blank">
    Share on twitter
</a>

Very simple fix, you need to replace all % as %25 for Twitter.

<a class="social-share__icon" href="https://twitter.com/intent/tweet?text=
Around 95%25 of Northern California [...]&url=https://www.xxxxxxxxx.com" target="_blank">
    Share on twitter
</a>

>> Share on Twitter – fixed!

That’s all!

Hope that can save someone some time!

Subscribe
Notify of

0 Comments
Inline Feedbacks
View all comments