Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upDo a redirect on twitter card to canonical url #27
Comments
added a commit
that referenced
this issue
Dec 16, 2017
dascritch
closed this
Dec 16, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dascritch commentedDec 15, 2017
•
edited
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.
Example : https://twitter.com/CPUprogramme/status/941195898884952065
Twitter card : https://cpu.dascritch.net/twitter-player/2017/12/14/Teaser-:-Ex0069-How-deep-learning-is-your-love
Canonical page : https://cpu.dascritch.net/post/2017/12/14/Teaser-%3A-Ex0069-How-deep-learning-is-your-love
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.