From what I understand from nextjs routes -
blog->[id].jsx gives "blog/1", "blog/2" etc.
But I want to achieve page-subpage-subpage kind of url tree where each page can have subpages & subpages can have further subpages. So url's may look like these -
"page/sub-page/sub-sub-page" etc.
I'm using django treebeard in backend, so pages & subpages urls are all dynamic & comes from API calls. Currently I tried with the below structure -
pages/
index.js
[slug].js
It only gives me ability to fetch only level one pages. I want to acquire multi-level page access.
Anybody ever did it? Please help.