The aim is to add into the navigation bar an arbitrary route or the parent page url, the route being defined in the parent content file, eg., inner.md. (I am also using onpage_menu: true)
I have a header field
up:
route: /operation
And inside a twig file inner.htlm.twig
{% set p_url = (header.up.route) ? header.up.route : page.parent.url %}
The problem is that the url being generated is <grav root>/operation, and not <grav root>/user/pages/operation
How do I access the base route for pages in twig?