]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/_head.html.erb
Serve OpenSearch definition though the assets pipeline
[rails.git] / app / views / layouts / _head.html.erb
index 3ddb7355153c2a1bd808974691f4eaf7cbf77782..6e876e166727cd3cd17cd5af74f8ac6680328683 100644 (file)
@@ -10,7 +10,7 @@
   <!--[if IE]><%= stylesheet_link_tag "large-#{t 'html.dir'}", :media => "screen" %><![endif]--> <!-- IE is totally broken with CSS media queries -->
   <%= 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 %>