close
The Wayback Machine - https://web.archive.org/web/20201124125224/https://github.com/fridays/next-routes/issues/308
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

If route name is different from target page name, urls with parameters in query don't work #308

Open
TheHacker66 opened this issue Jun 10, 2019 · 0 comments

Comments

@TheHacker66
Copy link

@TheHacker66 TheHacker66 commented Jun 10, 2019

Just tested this.

If I add .add('redirect', '/test-route/:queryparams') to routes, links like:

http://localhost/test-route?queryparams=param

work, if I put .add('test-route', '/test-route/:queryparams', 'test-other-route') the link above leads to a 404. Only links like:

http://localhost/test-route/param

Will work. Is this intended behavior?

@TheHacker66 TheHacker66 changed the title If route name is different from target page, urls with parameters in query don't work If route name is different from target page name, urls with parameters in query don't work Jun 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.