Dynamic routes not working
Answered
Say's Phoebe posted this in #help-forum
Say's PhoebeOP
https://github.com/RohanVashisht1234/litexlthemes/tree/main/src/app/themes
Instead of showing Post:slug_name at
data if required:
Instead of showing Post:slug_name at
/themes/something, it is showing 404 data if required:
yarn: v1.22.22
▲ Next.js: 14.2.3
node: v21.7.27 Replies
Answer
Say's PhoebeOP
But the route themes shows all the themes
Yes
Say's PhoebeOP
Oh! I get it
I need to place the [slug].tsx into [slug] folder and rename [slug].tsx to page.tsx right?
Yes
@joulev Yes
Say's PhoebeOP
Thanks a lot, it is working now 👍