From: Tom Hughes Date: Fri, 7 May 2010 13:08:07 +0000 (+0100) Subject: Preserve parameters in pagination links X-Git-Tag: live~6897^2~1 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/d50cf2b102793e8da000b580d5e4a55fc2248854?ds=sidebyside;hp=-c Preserve parameters in pagination links --- d50cf2b102793e8da000b580d5e4a55fc2248854 diff --git a/app/views/user/list.html.erb b/app/views/user/list.html.erb index 02378b451..fac7c442f 100644 --- a/app/views/user/list.html.erb +++ b/app/views/user/list.html.erb @@ -18,7 +18,7 @@ :count => @user_pages.current_page.last_item - @user_pages.current_page.first_item + 1 %> <% if @user_pages.page_count > 1 %> - | <%= pagination_links_each(@user_pages, {}) { |n| link_to n, :page => n } %> + | <%= pagination_links_each(@user_pages, {}) { |n| link_to n, params.merge(:page => n) } %> <% end %>