# linkResolver and nested paths

**URL:** <https://community.prismic.io/t/linkresolver-and-nested-paths/96>\
**Category:** Developing with Prismic\
**Tags:** nextjs\
**Created:** [March 31, 2020, 8:14pm UTC](https://community.prismic.io/t/linkresolver-and-nested-paths/96 "2020-03-31T20:14:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [April 1, 2020, 10:58am UTC](https://community.prismic.io/t/linkresolver-and-nested-paths/96/2 "2020-04-01T10:58:39Z")

</div>

Hi Yoaan,

Unfortunately it’s not possible to do more than one level deep of nested threads at the moment.

That is to say you could have [mydomain.com/category/dynamic-uid](http://mydomain.com/category/dynamic-uid) in the link resolver, by using fetchlinks:  
[https://prismic.io/docs/reactjs/query-the-api/fetch-linked-document-fields](https://prismic.io/docs/reactjs/query-the-api/fetch-linked-document-fields)  
**NOTE:** You must be using V2 of the api for this to work.

but not the more complex [mydomain.com/parent-category/category/dynamic-uid](http://mydomain.com/parent-category/category/dynamic-uid) .

Although we are working on a new more intelligent link resolver, for the Static SSR technologies like Nuxt, Next & Gatsby, that would allow you to easily create complex nested URLs like this. I will be sure to keep you updated with the progress of this.

For now one solution that could work, though not perfect, is to use the document tags to create the third level, so in Prismic your tag on the document would be ‘hub’ then in the link resolver you could use that to create the third level.

```auto
if (
  doc.tags.includes('hub')
) {
  return `/hub/${doc.data.relationlink.data.name}/${doc.uid}`
} 

```

Then you would repeat this in the linkresolver for every parent category. I know it’s not great but until we release the new resolver it’s a good solution.

Let me know if you have any further questions about this.

Thanks.

---

_[View the full topic](https://community.prismic.io/t/linkresolver-and-nested-paths/96)._
