X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/09721c6feeb2e6f26fae5c220e4f4b9e83cbaebc..ca719af262380a906103e7aec9befb4c903693a1:/app/helpers/open_graph_helper.rb?ds=sidebyside diff --git a/app/helpers/open_graph_helper.rb b/app/helpers/open_graph_helper.rb index cde848e5d..a496268e4 100644 --- a/app/helpers/open_graph_helper.rb +++ b/app/helpers/open_graph_helper.rb @@ -4,7 +4,7 @@ module OpenGraphHelper def opengraph_tags(title, properties) tags = { "og:site_name" => t("layouts.project_name.title"), - "og:title" => title || t("layouts.project_name.title"), + "og:title" => properties["og:title"] || title || t("layouts.project_name.title"), "og:type" => "website", "og:url" => url_for(:only_path => false), "og:description" => properties["og:description"] || t("layouts.intro_text")