-
Notifications
You must be signed in to change notification settings - Fork 693
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
URL forwarding removes query string #643
Comments
Any updates on this issue? |
This is a huge issue for me. To get around this I used |
@mvolkmann yepp.. Makes serve unusable for any project with query strings. This seems to be an issue of |
This pr updates our tests to use express instead of serve-handler. serve (likely due to using serve-handler) currently has a bug where, if any redirects occur, it will lose any query params you had in the url. See: vercel/serve#643 On top of that, serve will automatically redirect urls like /index.html to just /, which breaks our iframe integration for universal. J=SLAP-1313 TEST=auto percy snapshots for universal on iframe are now corrected and show the correct query
This pr updates our tests to use express instead of serve-handler. serve (likely due to using serve-handler) currently has a bug where, if any redirects occur, it will lose any query params you had in the url. See: vercel/serve#643 On top of that, serve will automatically redirect urls like /index.html to just /, which breaks our iframe integration for universal. J=SLAP-1313 TEST=auto percy snapshots for universal on iframe are now corrected and show the correct query
This pr updates our tests to use express instead of serve-handler. serve (likely due to using serve-handler) currently has a bug where, if any redirects occur, it will lose any query params you had in the url. See: vercel/serve#643 On top of that, serve will automatically redirect urls like /index.html to just /, which breaks our iframe integration for universal. J=SLAP-1313 TEST=auto percy snapshots for universal on iframe are now corrected and show the correct query
shameless self-promotion alert: |
@warren-bank I get this when I install it, could be because i'm using nvm.
|
update:
final update:
|
+1 on this. I think serve should preserve the querystring when redirecting, like it does with the location’s hash. |
Just use |
….js file for unit testing. serve-static had been removed when http-server was installed, http-server was required for the webpage because serve-static does not include query parameters in the url it sends in the headers to the client See vercel/serve#643
When navigating to
search.html
Serve forwards the request to/search
.so far so good. But query-strings at the end of an URL are removed while forwarding:
search.html?s=hello
->/search
This is not a behavior I would expect in normal operation
The text was updated successfully, but these errors were encountered: