We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3f0936 commit 58626b1Copy full SHA for 58626b1
lib/rails/pagination.rb
@@ -30,7 +30,7 @@ def _paginate_collection(collection, options={})
30
collection = ApiPagination.paginate(collection, options)
31
32
links = (headers['Link'] || '').split(',').map(&:strip)
33
- url = base_url + request.original_fullpath.sub(/\?.*$/, '')
+ url = base_url + request.path_info
34
pages = ApiPagination.pages_from(collection)
35
36
pages.each do |k, v|
0 commit comments