Redirecting a twitter card URL to canonical URL

cards

#1

For a sound content, Twitter app on Android is in fact opening a web-page (instead of a video content). But the twitter card URL is a minimalistic page, due to embedding. It is a better experience for users to have the canonical page instead.

Github ticket : https://github.com/dascritch/cpu-15/issues/27

URL affected: https://cpu.dascritch.net/twitter-player/2017/12/14/Teaser-:-Ex0069-How-deep-learning-is-your-love

Troubleshooting : Use Twitter Android application, clic on the card, the card is opening a webview or the browser to the twitter card URL. A more convenient should be a redirection to the canonical URL.

Possible scenarii : I think using <META http-equiv="refresh" content="0; URL=/post/canonical"> or a javascript refresh. I believe JS code is filtered by the app, and so for the embedded frame.
I don’t want any server-side redirection solution.


closed #2

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