Hello,
I have built a front-end private backend in which a connected user can see some sub-pages.
I would like to allow the admin user to click on a sub-pages title to open and edit it in the kirby panel.
What is the easy way to generate the subpages link to open it in the edit panel page?
Something like:
<a href="http://my-domaine.com/panel/pages/my-page/my-subpage/edit">subpages title</a>
I suppose something like this could do the job:
<a href="<?= $site->url() ?>/panel/pages/<?= $page->find('subpage-uri')->uid() ?>/edit">subpages title</a>
… but some part of this url is hardcoded (/panel/pages/ & /edit). Is there a Kirby function to get this panel url ?