panel.route:before /site/config/config.php return [ 'hooks' => [ 'panel.route:before' => function (Kirby\Http\Route $route, string $path, string $method) { // your code goes here return $route; } ] ] Parameters Parameter Type $route Kirby\Http\Route $path string $method string