Next.js Discord

Discord Forum

I get a 404 page on a dynamic route, and not sure how to fix it - NextJS 13

Answered
Tiphiid wasp posted this in #help-forum
Open in Discord
Tiphiid waspOP
Hi there!

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 Tiphiid wasp
and then create 'page' - follow the nextjs 13 way of doing this xd
View full answer

4 Replies

Tiphiid waspOP
I fixed it
I forgot this is not nextjs 12 xd
Basically its [slug] - as a folder
Tiphiid waspOP
and then create 'page' - follow the nextjs 13 way of doing this xd
Answer