Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do a redirect on twitter card to canonical url #27

Closed
dascritch opened this issue Dec 15, 2017 · 0 comments
Closed

Do a redirect on twitter card to canonical url #27

dascritch opened this issue Dec 15, 2017 · 0 comments

Comments

@dascritch
Copy link
Collaborator

dascritch commented Dec 15, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant