next-routes icon indicating copy to clipboard operation
next-routes copied to clipboard

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

Open TheHacker66 opened this issue 5 years ago • 0 comments

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 avatar Jun 10 '19 16:06 TheHacker66