Skip to content
Discussion options

You must be logged in to vote

Hi! 👋 Thanks for the clear explanation and sandbox — I was able to reproduce the issue and it's a common pitfall with Next.js App Router’s routing priorities.


🔍 Problem Summary

You're expecting the static route:

/form/create

to be matched directly, but instead it’s falling into your dynamic catch-all route:

/form/[draftVer]/row

So when you click "Create", you’re seeing the fallback content instead of the expected static page. This happens because Next.js treats create as a value for [draftVer] since it's not declared as a static route.


🧠 Why This Happens

In the Next.js App Router, routing follows these rules:

  • Static routes (like form/create) have higher priority, but only if defined.
  • I…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JamesAyres16
Comment options

Answer selected by JamesAyres16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants