cpuprogramme / cpu-15

Dotclear theme for radio show C.P.U.
2 stars 1 forks source link

Do a redirect on twitter card to canonical url #27

Closed dascritch closed 6 years ago

dascritch commented 6 years ago

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.