You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like we are hoping the request.full_path is good by default for returning. However I've found some libraries and especially calls from swagger ui will escape query strings. This means when we are creating links they'll come in their escaped form into the response:
Reading that guideline it looks like we should go for readable first, so unescaping the request.fullpath from the pagination%5Bpage%5D to pagination[page] (inline with the other outputs) is indeed the right path. I'll get a PR together for you soon.
@stas I've put in a preliminary PR for this as the specs don't currently run on older versions of Ruby/Rails. No Gemfile.lock is committed to the repo so we canny tell the exact dependences you want to run against.
Looks like we are hoping the
request.full_path
is good by default for returning. However I've found some libraries and especially calls from swagger ui will escape query strings. This means when we are creating links they'll come in their escaped form into the response:This appears to only be present in the pagination and could be corrected by just wrapping it in a
CGI.unescape
block.Before opening a PR, is there a specific reason we wouldn't want to CGI.unescape a path here?
The text was updated successfully, but these errors were encountered: