Skip to content

Kirby 3.9.8

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