Skip to content
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

"Dashboard" appears to be a reserved name for routing/url #1615

Open
6 tasks done
Sheldonfrith opened this issue Dec 22, 2023 · 1 comment
Open
6 tasks done

"Dashboard" appears to be a reserved name for routing/url #1615

Sheldonfrith opened this issue Dec 22, 2023 · 1 comment

Comments

@Sheldonfrith
Copy link

Checklist

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

@mogzol
Copy link

mogzol commented Jan 17, 2024

I have a /dashboard page in my app with this package and it works fine, so I would guess this is a configuration issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants