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
Enhance opengraph rich preview for changeset, relation, way, node, user pages #2007
Comments
Just wanted to mention that some points in your proposal are affected by proposed changes for GDPR: https://wiki.openstreetmap.org/wiki/GDPR/Affected_Services Especially for changeset, this may cause some strange side effect: you will still see all details as long as you're authenticated, and a forbidden message otherwise. Sharing such a "forbidden" link on Twitter isn't exactly what people expect. Somehow this OpenGraph topic slipped under the radar... |
Not sure if this relates to this issue and patch. But in any case I'd propose to add Social Media meta tags in the HTML head section, in order to show a map preview at appropriate zoom level when mentioning OSM in Social Media, like here (where the Twitter card/image obviously is missing): https://twitter.com/sfkeller/status/1249388633838309377 |
Currently the same code sets the Open Graph meta tags for every page, regardless of the view: openstreetmap-website/app/helpers/open_graph_helper.rb Lines 3 to 11 in 466de96
The Open Graph Protocol specification describes an
I think this would only be relevant to changesets in the proposal above. The user and diary post views should be unaffected, because the user name is part of the URL anyways. |
Reason:
Changeset, relation, way and node pages are regularly shared on IM and social media channels to discuss, promote or brag about OSM contributions. Right now all of these pages use the same variable "layouts.intro_text" for the OpenGraph description meta tag og:description which is just a general OSM project description: OpenStreetMap is a map of the world, created by people like you and free to use under an open licence.
See example rich preview for a changeset (and card rendering preview for IM and social media types): https://richpreview.com/?url=https%3A%2F%2Fwww.openstreetmap.org%2Frelation%2F36970
Some prerequisites/observations:
Proposal:
Description field should describe/represent the page's content.
Change og:description for detail page types on openstreetmap.org:
NB: The OpenGraph description should remain as is (layouts.intro_text) for all other pages
The text was updated successfully, but these errors were encountered: