What would be route structure?
Unanswered
Asian black bear posted this in #help-forum
Asian black bearOP
I want to make routes that look like this,
so,
I went with
Now, how could I show the details slug in the parent slug or child slug?
Thanks for your help.
example.com/parentCategory/newsIdexample.com/parentCategory/category/newsIdso,
parentCategory, category, newsId these are dynamic.I went with
app/
[parent_slug]
- page.tsx
- [child_slug]
- page.tsx
- [details_slug]
- page.tsxNow, how could I show the details slug in the parent slug or child slug?
Thanks for your help.
1 Reply
Cape lion
you have to move your details_slug
folder under child_slug folder
that way you will get
example.com/child_slug/details_slug
folder under child_slug folder
that way you will get
example.com/child_slug/details_slug