You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Next.js router is mistaking the index.js route as a dynamic route with a query of "index".
I have 2 pages:
- pages/index.js
- pages/[page].js with fallback
Occasionally when loading the index route, I am getting directed to the [page].js route which is returning as an error page.
The router at this point is looking like this:
This fixes the case where index page revalidation would match a dynamic page instead of the index page from the pathname not being denormalized.
Fixes: #22750
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
vercel
locked as resolved and limited conversation to collaborators
Jan 28, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Next.js are you using?
10.0.7
What version of Node.js are you using?
14.12.0
What browser are you using?
Chrome, Safari, Firefox
What operating system are you using?
macOS
How are you deploying your application?
Vercel
Describe the Bug
The Next.js router is mistaking the index.js route as a dynamic route with a query of "index".
I have 2 pages:
- pages/index.js
- pages/[page].js with fallback
Occasionally when loading the index route, I am getting directed to the [page].js route which is returning as an error page.
The router at this point is looking like this:
Expected Behavior
The index route should load consistently
To Reproduce
Create an
index.js
page and a dynamic route page withfallback: true
.Load the index route in the browser and refresh until it does not display.
My site can also be viewed for an example: https://cappellazzo-website-cvrquuxk8-homestudio.vercel.app/
The text was updated successfully, but these errors were encountered: