[openstreetmap/openstreetmap-website] Don't add site name to og:title when page title is provided (PR #4883)

Anton Khorev notifications at github.com
Fri Jun 7 08:36:21 UTC 2024


It makes sense to add "OpenStreetMap" to `<title>` of every page, but for Open Graph there's already `og:site_name`. I looked at various sites like github, osm forum, they don't add site name to `og:title`.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/4883

-- Commit Summary --

  * Don't add site name to og:title when page title is provided

-- File Changes --

    M app/helpers/open_graph_helper.rb (2)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/4883.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4883.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4883
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4883 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240607/3c49e2a3/attachment.htm>


More information about the rails-dev mailing list