-
Notifications
You must be signed in to change notification settings - Fork 149
fix(gateway): preserve query parameters on _redirects #886
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
f715771 to
9b4b453
Compare
adds missing test + ensures any params from _redirects are preserved this follows what is already supported by Cloudflare Pages implementation: https://developers.cloudflare.com/pages/configuration/redirects/#per-file
9b4b453 to
2d9d254
Compare
Related to fix from ipfs/boxo#886
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't help with Cloudflare-hosted sw gateway, but we should fix the bug where params are not preserved ( we preserve them in all other cases such as subdomain redirects).
- Added support for merging static and dynamic query parameters, prioritizing user values
- Added tests and
- CHANGELOG.md updated
- Opened ipfs/specs#498 to fill the spec gap and clarify how query parameters should be handled.
@SgtPooki in spare time take a look, if specs/tests look fine, I think it is fine to merge this fix (query params should be preserved).
SgtPooki
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tests look good to me
Related to fix from ipfs/boxo#886
Preserve query parameters for _redirects file redirects
Still needs a test.. and potentially CHANGELOG.md update.
related ipfs/service-worker-gateway#628 + ipfs/specs#498
cc @lidel