Nuxt3 Route Resolving + Content Relationships

I am trying to update the route for the content-type "page". I would like to be able assign a parent page through a content relationship that will update the URL (site.com/old-page/new-page). So that I do not have to create subpage for each folder in my page structure.

I have checked out documentation online, but have had limited success.

does anyone have a working example on how to accomplish this?

Hi Michael,

We have an article on how to create hierarchical URLs with Next.js:

While the code is specific to Next.js, the principles are the same in Nuxt (including the Route Resolver, file based routing, and dynamic URLs). Let me know if that helps, or if it leaves any questions for you.

Sam