]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/_head.html.erb
Add a canonical URL to the head
[rails.git] / app / views / layouts / _head.html.erb
index ad91b01d1fff83f61eefd5f92437a16c5ab1a93e..8d90ad7ccb28c3fc4a226aad29f717ae69d020e0 100644 (file)
@@ -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." }) %>