lib/rails_pagination/pager.rb in rails_pagination-2.0.5 vs lib/rails_pagination/pager.rb in rails_pagination-2.0.6

- old
+ new

@@ -44,14 +44,14 @@ def navigation @navigation end def page_path(page) - @template.url_for(@template.request.query_parameters.merge(@parameter => page)) + @template.request.path + '?' + @template.request.query_parameters.merge(@parameter => page).to_query end def page_url(page) - @template.url_for(@template.request.query_parameters.merge(@parameter => page, :only_path => false)) + @template.request.protocol + @template.request.host_with_port + page_path(page) end def current_page_path page_path @collection.current_page end