-
Notifications
You must be signed in to change notification settings - Fork 32
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 url string of pagesPath #141
Comments
Next.js new |
@solufa any updates on this? |
A bit old but a workaround is to use nextjs resolveHref function you will get the full href path string import { resolveHref } from 'next/dist/shared/lib/router/router'
const paths = resolveHref(route, $pagesPath.post._pid(1).$url(), true)[1] // you need to pass router of useRouter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Hi, I many times we need get final url of pagesPath
Example:
Describe the solution you'd like
This will be good, i think
pagesPath.dashboard.project._projectId("abc").$urlString;
Additional context
The text was updated successfully, but these errors were encountered: