Skip to content

Kirby 3.6.6

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