From: Tom Hughes Date: Tue, 27 Oct 2015 11:52:40 +0000 (+0000) Subject: Add og:url to OpenGraph tags X-Git-Tag: live~3974 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/c8640c8f82ace9a4a4713f01c50a3f4410c61ffb Add og:url to OpenGraph tags --- diff --git a/app/helpers/open_graph_helper.rb b/app/helpers/open_graph_helper.rb index 61c3dc44b..cb72d7254 100644 --- a/app/helpers/open_graph_helper.rb +++ b/app/helpers/open_graph_helper.rb @@ -5,7 +5,8 @@ module OpenGraphHelper "og:title" => [t("layouts.project_name.title"), title].compact.join(" | "), "og:type" => "website", "og:image" => image_path("osm_logo_256.png", :host => SERVER_URL, :protocol => "http"), - "og:image:secure_url" => image_path("osm_logo_256.png", :host => SERVER_URL, :protocol => "https") + "og:image:secure_url" => image_path("osm_logo_256.png", :host => SERVER_URL, :protocol => "https"), + "og:url" => url_for(:host => SERVER_URL) } tags.map do |property, content|