Hello everyone.

I am trying to use the Twitter Web Intents to create a new tweet with prefilled content and, although it’s working as expected on desktop browsers, there’s a problem with the content in mobile browsers.

When the web intent is triggered and the user is not logged in, a login form is displayed overlaying the create tweet UI, where the content can be seen and is displayed correctly. After logging in, the create tweet UI is refreshed and the content is now displayed with the escaping characters (which weren’t displayed before).
This behavior can also be checked with the Tweet Button example that can be found here: https://developer.twitter.com/en/docs/twitter-for-websites/tweet-button/overview.

Is there any way to prevent this from happening? I noticed that using “+” instead of “%20” in the URL fixes the spaces, but other special characters would still be escaped.

Below, you can see a couple of screenshots showing the issue:

Log in overlay:

New tweet UI after logging in:

Hey @afernandez

Thanks for flagging this! We will look into it and report back here

2 Likes

Hey @afernandez – thanks again for flagging this. The issue has been resolved and you shouldn’t see this behavior anymore. Please let us know if the problem persists

2 Likes

I tested it and everything seems fine now. Thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.