From: Tom Hughes Date: Wed, 22 Mar 2017 17:14:55 +0000 (+0000) Subject: Add a canonical URL to the head X-Git-Tag: live~3475 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/419edf951d7686b96157672919c530305ef0fcc5?ds=sidebyside Add a canonical URL to the head --- diff --git a/app/views/layouts/_head.html.erb b/app/views/layouts/_head.html.erb index ad91b01d1..8d90ad7cc 100644 --- a/app/views/layouts/_head.html.erb +++ b/app/views/layouts/_head.html.erb @@ -24,6 +24,7 @@ <%= tag("meta", { :name => "msapplication-TileColor", :content => "#00a300" }) %> <%= tag("meta", { :name => "msapplication-TileImage", :content => image_path("mstile-144x144.png") }) %> <%= tag("meta", { :name => "theme-color", :content => "#ffffff" }) %> + <%= tag("link", { :rel => "canonical", :href => root_url(:host => SERVER_URL) }) %> <%= tag("link", { :rel => "publisher", :href => "https://plus.google.com/111953119785824514010" }) %> <%= tag("link", { :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Search", :href => asset_path("osm.xml") }) %> <%= tag("meta", { :name => "description", :content => "OpenStreetMap is the free wiki world map." }) %>