Skip to content

Kirby 3.8.4

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