From ae1fedc73b06367f7dc4ffa6b2f735530c8ccc6e Mon Sep 17 00:00:00 2001 From: Gonzalo Rodriguez Date: Sun, 2 Oct 2011 23:02:48 -0200 Subject: [PATCH] Preserve search term on search input. Related to #1983. --- app/views/layouts/_header.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/_header.html.haml b/app/views/layouts/_header.html.haml index 63b6d8820..8386be2e1 100644 --- a/app/views/layouts/_header.html.haml +++ b/app/views/layouts/_header.html.haml @@ -19,7 +19,7 @@ - elsif (current_user || !@landing_page) #global_search = form_tag(people_path, :method => 'get', :class => "search_form") do - = text_field_tag 'q', nil, :placeholder => t('find_people'), :type => 'search', :results => 5 + = text_field_tag 'q', params[:q], :placeholder => t('find_people'), :type => 'search', :results => 5 #nav_badges #home_badge.badge