I get a 404 page on a dynamic route, and not sure how to fix it - NextJS 13
Answered
Reddish carpenter ant posted this in #help-forum
Reddish carpenter antOP
Hi there!
So I created folder structure to be like:
Each time I navigate from page to companies, I get a 404 page.
My page looks like this basically:
Am I missing something? Reading the docs wrong?
So I created folder structure to be like:
/companies
-- [slug].tsx (and yes I tried three dots as well)
-- pagge.tsx (works)Each time I navigate from page to companies, I get a 404 page.
My page looks like this basically:
<Link href={`/inspiration/companies/${company.slug}`} className="flex items-center">Am I missing something? Reading the docs wrong?
Answered by Reddish carpenter ant
and then create 'page' - follow the nextjs 13 way of doing this xd
4 Replies
Reddish carpenter antOP
I fixed it
I forgot this is not nextjs 12 xd
Basically its [slug] - as a folder
Reddish carpenter antOP
and then create 'page' - follow the nextjs 13 way of doing this xd
Answer