Skip to content

Kirby 4.5.0

routes

Additional route setup for Kirby's internal router

The routes option accepts an array of routes.

return [
 'routes' => [
    [
      'pattern' => 'team/(:any)',
      'action'  => function ($hash) {
        return go('team/#' . $hash);
       }
    ],
  ]
];