Currently working on a Nuxt application that utilizes the WordPress REST API to fetch content. While my other routes are functioning correctly, I am facing challenges with nested pages.
The structure I have implemented in my Nuxt app is as follows:
pages
--- _slug
------ index.vue
For instance, in WordPress, an example would be:
How To Get There (slug: how-to-get-there)
-- Roads & Road Safety (slug: roads-road-safety)
I seem to be misunderstanding how routing functions because this setup does not work, resulting in a 404 error when trying to access the child page.
Could someone provide guidance on the correct method of routing a child page from WordPress?