diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-11-05 14:55:18 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-11-05 15:32:19 +0000 |
commit | 09fb1273801f449c9428b0d5d82e2189dd53a15e (patch) | |
tree | d0ccffbffd7521130c888fe90ecc80e3498b8c91 | |
parent | 4d5c7e2caabd320fdce76f6d8d73f9e581fc03cb (diff) |
Use a simple form and submit button for the search box - we don't want the extra params from generated form tags and don't need csrf protection here. The unique csrf token presumably is preventing the serving of search results from the cache.
-rw-r--r-- | app/views/layouts/default.rhtml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/views/layouts/default.rhtml b/app/views/layouts/default.rhtml index 3dd5a2749..76bdbd2dd 100644 --- a/app/views/layouts/default.rhtml +++ b/app/views/layouts/default.rhtml @@ -100,12 +100,12 @@ <% end %> <div id="navigation_search"> - <% form_tag({:controller => "general", :action => "search_redirect"}, {:id => "navigation_search_form"}) do %> - <p> - <%= text_field_tag 'query', params[:query], { :size => 40, :id => "navigation_search_query" } %> - <%= submit_tag 'search', :id => "navigation_search_button" %> - </p> - <% end %> + <form id="navigation_search_form" method="post" action="/search"> + <p> + <%= text_field_tag 'query', params[:query], { :size => 40, :id => "navigation_search_query" } %> + <input id="navigation_search_button" type="submit" value="search"> + </p> + </form> </div> <%= render :partial => 'general/orglink' %> |