Skip to content

Conversation

@alexspeller
Copy link

@alexspeller alexspeller commented Oct 28, 2025

Found this whilst looking at the other recent deferred props issue, this one is nice and small though!

The test server was using req.path instead of req.originalUrl, which stripped query parameters from the URL

Just a test server issue in this case, there was already a TODO in the code, but I think the extra tests are worthwhile to test that the correct query params are preserved for deferred requests?

Found this issue whilst looking at the other recent deferred props
issue, this one is nice and small though!

The test server was using req.path instead of req.originalUrl, which
stripped query parameters from the URL in Inertia responses.

Just a test server issue in this case
@alexspeller alexspeller marked this pull request as draft October 28, 2025 18:17
@alexspeller
Copy link
Author

Ah I thought this would be a small one, but it breaks a lot of existing tests that are relying on the incorrect behaviour of the test server - I'm happy to fix but it would be a massive diff, let me know if you're interested in proceeding

@alexspeller alexspeller force-pushed the fix/test-server-preserve-query-params branch 4 times, most recently from fc94229 to 8ff989c Compare October 29, 2025 15:36
@alexspeller alexspeller force-pushed the fix/test-server-preserve-query-params branch from 8ff989c to 4b1a7f7 Compare October 29, 2025 15:44
@alexspeller
Copy link
Author

Well if you want it I think this is all the changes that are needed

@alexspeller alexspeller marked this pull request as ready for review October 29, 2025 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant