From c8640c8f82ace9a4a4713f01c50a3f4410c61ffb Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 27 Oct 2015 11:52:40 +0000 Subject: [PATCH 1/1] Add og:url to OpenGraph tags --- app/helpers/open_graph_helper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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| -- 2.45.1