Extending route resolver grandparent limit

Hi, is there any way to extend the route resolver grandparent limit to great-grandparent and even possibly great-great-grandparent?

We have an existing site that we're migrating over that has a very nested url structure, and we're trying to see if it would be possible to do without creating our own link resolver and recursively fetching documents

Thanks,

Raj

1 Like

Hello @design-development, thanks for reaching out.
The Route Resolver is limited to 3 levels, here you can see some examples:

{
  type: "page",
  path: "/:grand_parent?/:parent?/:uid",
  resolvers: {
    parent: "parent",
    grand_parent: "parent.parent"
  }
}

Hi Pau,

Is there any way to up this limit at all?

Thanks,

Raj

At the moment, three levels are the limit for the length of the route resolver.

1 Like

My project also requires great-grandparent relationships. I found this thread from 2022 and am wondering if there are there any plans to extend the route resolver limit to support great-grandparent relationships?

It would be awesome to have this as a feature of the Route Resolver, rather than relying on client-side Link Resolver workarounds.

There have been no changes to this yet @cords, but the team plans to hopefully change how URLs are handled this year.

That's not to say that the new way of doing this will go beyond the grandparent level, but I've marked it once more in the feature tracker for the team to consider.

Thanks.

1 Like