-
Notifications
You must be signed in to change notification settings - Fork 27k
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
get current Route 'url' and 'as' info #1377
Comments
Check out https://github.com/fridays/next-routes Then you can reverse it with |
Currently it's not supported. Not exactly(or just only) these APIs. We should provide some ways to improve this. This is one step towards that: #1345 |
Also make sure to look at https://github.com/BDav24/next-url-prettifier I think it would be great if something like |
I'm also looking for a way to access |
I am looking,too |
Gonna close this since I'm going to close this pretty close: #1843 |
I see that the Router has some properties: pathname, query, ....
Is it possible to expose a method to get the current 'url' and 'as' ?
That way you could for example save this in the state to navigate later to this location with Router.push(url,as);
Or is there already a better way to achieve this functionality?
The text was updated successfully, but these errors were encountered: