-
Notifications
You must be signed in to change notification settings - Fork 357
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
"Automatic pass through" of query parameters in Redirect rules does not work in netlify dev
-served site
#1699
Comments
netlify dev
-served site
Can you check if that works using the option |
Disregard! That was my own error. Writing a better response now. |
@calavera using I did notice one thing: in this particular circumstance (i.e. with This makes partial sense to me, since servør serves a directory listing page in the absence of an |
Not redirecting is the right behavior, since we don't redirect in production unless there is an explicit There are two reasons why the behavior is even more different:
|
@calavera that makes perfect sense. Thanks so much for your help! I will close this issue now. |
@calavera I've encountered a different problem, but am unsure if it deserves a new issue. I am hoping commenting here and asking for your take is cool. I have noticed that, with the
That requests to Netlify functions (at This does not occur without the Also, it's not possible to address this with a preceeding rule like
(a 'trick' I've used before to disable a catch-all redirect rule for a specific path), because " Am I missing something? Greatly appreciate your attention and help. |
ohh that's a very interesting finding @nonAlgebraic! That's for sure a new bug, but I think I can get a patch out for you today. I'll update this thread when I have some more information. |
@calavera amazing! thank you so much. Please let me know if I can be of any further help. |
@calavera would it be helpful if I open a separate issue for the above, with reproduction etc.? |
Went ahead and did so #1721 for tidiness. |
Describe the bug
A recent and welcome change described in this post on the community forums, wherein redirect rules that don't specify expected query parameters in the "from" path pass all query parameters through to the "to" path by default on the CDN, does not seem to work when using
netlify dev
locally.To Reproduce
yarn install
yarn netlify dev
. This statrs a servør local server on port 8080 andnetlify dev
on port 9090netlify.toml
would suggest, but that the "?foo=bar
" query string is not passed through automaticallyConfiguration
Contents of
netlify.toml
:Output of
envinfo
:Expected behavior
Redirects defined in the config file without specific query parameter settings should pass through any and all query parameters in the requested path to the redireced-to path.
The text was updated successfully, but these errors were encountered: