Skip to content

Commit 3edb1b4

Browse files
committed
unescapes request.fullpath to match the remainder of the output when the request.fullpath has been sent escaped
1 parent 9dc135e commit 3edb1b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jsonapi/pagination.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def jsonapi_paginate(resources)
2929
#
3030
# @return [Array]
3131
def jsonapi_pagination(resources)
32-
links = { self: request.base_url + request.fullpath }
32+
links = { self: request.base_url + CGI.unescape(request.fullpath) }
3333
pagination = jsonapi_pagination_meta(resources)
3434

3535
return links if pagination.blank?

0 commit comments

Comments
 (0)