Skip to content

Kirby 4.5.0

(:any)

Matches any character until the next slash

Example

/site/config/config.php
return [
  'routes' => [
    [
      'pattern' => '/projects/(:any)',
      'action'  => function (string $path) {
        // react to requests
      }
    ]
  ]
];