path(to, from) works perfects when I don't have param on the URL. But for this case page('/user/:userId/settings', '/user/:userId') will not work because when I navigate to page('/user/100/settings') page will redirect to page('/user/:userId')... of course this is not the expected behaivour.
Hello, I'm having the following issue.
path(to, from)
works perfects when I don't have param on the URL. But for this casepage('/user/:userId/settings', '/user/:userId')
will not work because when I navigate topage('/user/100/settings')
page will redirect topage('/user/:userId')
... of course this is not the expected behaivour.I ended up doing the following:
This is working perfect but it will be nice to have a solution from page.js directly...
If you want I could do a PullRequest with this change.
Thanks!