nextjs-auth0 icon indicating copy to clipboard operation
nextjs-auth0 copied to clipboard

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

Open Sheldonfrith opened this issue 1 year ago • 1 comments

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

Sheldonfrith avatar Dec 22 '23 18:12 Sheldonfrith

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

mogzol avatar Jan 17 '24 18:01 mogzol