twittersafarimobile-safarisharetwitter-share

Twitter share button opens two tabs on Safari


I'm using the following URL to share the page on Twitter:

https://twitter.com/intent/tweet?text=POST_TITLE&POST_URL&via=akhbar

It works fine with all browsers and mobile devices, except Safari, it opens:

Why does this happen on Safari? And how to avoid this?


Solution

  • I've solved this by changing the Twitter share URL to this:

    https://twitter.com/share?url=POST_URL&via=akhbar&text=POST_TITLE

    But I've no idea what are the differences between intent and share, and why that was happening with the old URL.