Run route on uri to get original $page object

Ah, so it’s the other way around. You don’t need the mapping route -> page but page -> route.

This won’t work out of the box, as Kirby doesn’t know about your custom routes and the custom logic you use for them. To change the links to your routed pages, you can use a page model and set the url method on it to override the URL with a custom one.

1 Like