Next.js Discord

Discord Forum

Path params on NotFound page

Unanswered
Mohamed posted this in #help-forum
Open in Discord
I am using Next 13.5 with App Router and I have a page structure thats dynamic app/[locale]/[...slug]/page.tsx. Once I detect that some data is not available using locale and slug I throw notFound(). When the page not-found.tsx is called, I am unable to retrieve the path parameters.

Is this an intended behaviour from Nextjs or am I doing it something wrong?

0 Replies