I’m building a complete guide for a website, with next JS and dynamic page.
I will have an architecture like this : mydomain.com/hub/chapter/article
In an article, I have a content relationship to a chapter, and a chapter has its own content relation ship to hub.
In an article, I have a RichText element where we can have links to other Prismic document, for example a chapter or an article. Assume we want to go mydomain.com/hub/chapter/article2, for this need I add a relationship content in RichText editor.
Now if I need to make a correct link, I need to use linkResolver on RichText component.
But how to rebuild the full path to article page for exemple ? LinkResolver have only few attributes and it seems impossible to make a async call to get all datas I need to rebuild my specific path, and it seems weird to make a thing like this.