Add og:url to OpenGraph tags

This commit is contained in:
Tom Hughes 2015-10-27 11:52:40 +00:00
parent 18d26c0d81
commit c8640c8f82

View file

@ -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|