Using Nuxt.js, I am trying to get a parent/child page relationship to work using only one ‘contentpage’ custom-type. I am looking to create the following url: domain.com/contentpage-one/contentpage-two.
To achieve this I added a ‘Parent page’ content-relationship field on the contentpage custom-type. So in the above scenario, the ‘contentpage-two’ page has ‘contentpage-one’ selected as its parent. However when using the ‘prismic-link’ component in Nuxt.js with the ‘Parent page’ content-relationship as field property, I don’t have access to the slug of the actual page (only of the parent page) in the link resolver.
It would be great if someone could help me achieve this relationship in a way that’s easy for clients to maintain and edit in Prismic.
Bonus: a ‘domain.com/contentpage-one/contentpage-two/contentpage-three’ option would be pretty great!
Thanks in advance,