]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/_search.html.erb
Make the search form a GET form with no extra fields
[rails.git] / app / views / layouts / _search.html.erb
index 732e57d31505f20f6382c40c7fe238c6fe4e8ea1..ed548e21c78c8671918b7f5223a2a21ceb597030 100644 (file)
@@ -1,7 +1,7 @@
-<%= form_tag search_path, :class => "search_form" do %>
+<form method="GET" action="<%= search_path %>" class="search_form">
   <%= submit_tag t('site.search.submit_text') %>
   <div class='query_wrapper'>
     <%= text_field_tag "query", params[:query], :placeholder => t("site.search.search"), :autofocus => autofocus %>
     <%= link_to t('site.search.where_am_i'), '#', { :class => "describe_location", :title => t('site.search.where_am_i_title') } %>
   </div>
-<% end %>
+</form>