nextjs-auth0
nextjs-auth0 copied to clipboard
"Dashboard" appears to be a reserved name for routing/url
Checklist
- [X] The issue can be reproduced in the nextjs-auth0 sample app (or N/A).
- [X] I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- [X] I have looked into the API documentation and have not found a suitable solution or answer.
- [X] I have searched the issues and have not found a suitable solution or answer.
- [X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- [X] I agree to the terms within the Auth0 Code of Conduct.
Description
Since recently adding @auth0/nextjs-auth0 to my existing next.js application any page routes that are in my "dashboard" folder are now broken. If I, for example, call router.push
to the route "/dashboard/test-page"
my application tries to go to http://localhost:3000/api/auth/signin?callbackUrl=%2Fdashboard%2Ftest-page
instead of http://localhost:3000/dashboard/test-page
like it should. For now I'm just renaming my "dashboard" folder and all my routes, but its kind of a silly bug, and took me a while to figure out.
Reproduction
I have not tried to reproduce it with a fresh application, don't have time right now.
Additional context
No response
nextjs-auth0 version
3.5.0
Next.js version
12.3.1
Node.js version
18.18.0
I have a /dashboard page in my app with this package and it works fine, so I would guess this is a configuration issue