Skip to content

Kirby 4.1.2

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);
       }
    ],
  ]
];