How to access basePath with AppRouter? useRouter() from next/navigation doesn't have basePath #71269
Unanswered
OnkelTem
asked this question in
App Router
Replies: 1 comment
-
|
According to https://nextjs.org/docs/app/building-your-application/upgrading/app-router-migration#step-5-migrating-routing-hooks,
So currently there is no way to get If you really need to get |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So before we could do:
but the current router from next/navigation doesn't contain the
basePathproperty. So where can we get it?Beta Was this translation helpful? Give feedback.
All reactions