From: Tom Hughes Date: Fri, 30 Dec 2011 22:37:11 +0000 (+0000) Subject: Serve OpenSearch definition though the assets pipeline X-Git-Tag: live~6503 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/2a84871de6551256ca6c421708dce9fc8fdb8102 Serve OpenSearch definition though the assets pipeline --- diff --git a/public/opensearch/osm.xml b/app/assets/opensearch/osm.xml similarity index 100% rename from public/opensearch/osm.xml rename to app/assets/opensearch/osm.xml diff --git a/app/views/layouts/_head.html.erb b/app/views/layouts/_head.html.erb index 3ddb73551..6e876e166 100644 --- a/app/views/layouts/_head.html.erb +++ b/app/views/layouts/_head.html.erb @@ -10,7 +10,7 @@ <%= favicon_link_tag "favicon.ico" %> <%= tag("link", { :rel => "publisher", :href => "https://plus.google.com/111953119785824514010" }) %> - <%= tag("link", { :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Search", :href => "/opensearch/osm.xml" }) %> + <%= 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." }) %> <%= style_rules %> <%= yield :head %>