Skip to content
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

fix: 🐛 passing at least query params to error route #126

Merged
merged 7 commits into from
Jul 16, 2021

Conversation

VojtaSim
Copy link
Contributor

Fixes bug introduced in #122.

When no route is matched a not-found route is handled and we're trying to obtain previous route to extract params from and add them to params for not-found route. However in this case no previous route exists therefore no params to add, but that means we're also loosing query string params.

This issue addresses that by extracting query params from path as a fallback when no previous route is matched.

@mjancarik mjancarik merged commit 6b1224e into master Jul 16, 2021
@mjancarik mjancarik deleted the error-route-params branch July 16, 2021 07:42
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.

2 participants