Are routes stored , can be echoed?

I am having issues with routes and to debug it’d be useful to echo them as they are resolved by Kirby from config file.

Is it possible?

Thank you

What exactly do you mean? Inside the route?

Hello @pixelijn,

I mean , for example, the fully resolved route if such a thing is actually stored.

For example http://blahblah/blah/myroute from a route such as (:all)/myroute'

Thank you

Oh, there is actually $kirby->routes() , ->router() and ->route() :man_facepalming:

Let’s explore that.


Inside the route you have access to $this which is the same as $kirby->route().

1 Like