From 419edf951d7686b96157672919c530305ef0fcc5 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 22 Mar 2017 17:14:55 +0000 Subject: [PATCH] Add a canonical URL to the head --- app/views/layouts/_head.html.erb | 1 + 1 file changed, 1 insertion(+) 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." }) %> -- 2.39.5