Hello,
i was wondering if someone has an idea for the following.
First of all: We have a next application that uses magnolia headless.
In general the page root node e.g. is called 'Home', we have a uri2repository mapping for that.
The delivery endpoint for the pages itself is configured with a jcrReferenceResolver to map page links stored via UUID to paths, those paths resulting are fine (not including the "Home") in the path.
So far so good.
However, we want to build the top level navigation dynamically, hence having a pagenav delivery endpoint that fetches the pages, e.g.:
class: info.magnolia.rest.delivery.jcr.v2.JcrDeliveryEndpointDefinition
workspace: website
depth: 0
includeSystemProperties: false
systemProperties:
- mgnl:template
limit: 50
nodeTypes:
- mgnl:page
Now: the returned @path property is obviously the path to the node, hence "Home/pagea"
Is there a "built-in" way to get a path of the page that is also "resolved" in regards to uri2repository mapping?
Defining a resolver on the @id property does not work.
Any other ideas?
We thought about either defining an extra resolver or a custom rest endpoint for the navigation.
Thanks Chris