Is there a way to use a field as part of a route resolver?
For example, lets say I have a "page" document type:
- path
- uid
- title
- content
...where the "path" is a string the content author puts in (e.g. "/parent/child/").
And I want the route to do something like this (in order to handle nested pages):
{
type: "page",
path: "/:path?/:uid",
resolvers: {
path: "path"
}
},
I can get a route resolver to work when it's referencing an external document type but not when it's a field inside the current model.
Am I missing something?