next-routes
next-routes copied to clipboard
If route name is different from target page name, urls with parameters in query don't work
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?