-
-
Notifications
You must be signed in to change notification settings - Fork 461
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
Query params are stripped after GET request #912
Comments
@reinink would it be possible for you to confirm whether this is the expected behavior? Ie. if I enter the following URL in an Inertia app and hit enter:
...would you expect the query params to be removed from the URL after the Inertia app inits, or to remain in the URL? I originally though this was something specific to the Inertia Link component, but it's actually independent of that. The query params disappear after the page finishes executing JS even when you manually put them into the URL and cause a full page load. |
For future reference in case this helps anyone else: I eventually figured this one out, the query params were actually missing on the |
I realize it's been a while, but I'm hitting this. What was the 'fix'? (TIA) |
Versions:
Describe the problem:
After following an inertia link with query params, the query params are not present in the browser's URL. Interestingly, they are passed to the server, so the request "works," but if the user refreshes on the page the params are lost.
I would expect the query params to stay present in the browser's URL.
Steps to reproduce:
Create a link with query params and click it. Here are the examples I tried, all of which have the same behavior of not passing the query params into the browser's URL (even though they do make the GET request using the params):
From the docs I wondered if using the
data
option would be better than passing the full URL string, but when I tested using thedata
option the params were not passed at all.The text was updated successfully, but these errors were encountered: