Help with dynamic pages in app router
Unanswered
Mandarin fish posted this in #help-forum
Mandarin fishOP
Hey I was wondering if anyone could help me with an issue Im having inside the app router. The issue is that I currently have a folder structure like the image shows the route I have issues with is
/[country]/attractions/category/[cat]/page.tsx. Im having issues with the params of this route, when I navigate for example to http://localhost:3000/peru/attractions/beach im seeing the params as follows : country = beach, cat = beach when country should be peru. I dont really know why this happens, if anyone has some ideas it would be great, thanks!3 Replies
can you provide a min repro repo
Mandarin fishOP
Just for context im trying to port it from the pages router, maybe I missed some things.
@Mandarin fish Just for context im trying to port it from the pages router, maybe I missed some things.
Double-striped Thick-knee
as Anay said. you should provide a min reproduction for us to debug.