'auteurs/(:any)', 'action' => function ($slug) { $kirby = kirby(); $author = getAuthorBySlug($slug); return Page::factory( [ 'slug' => '', 'template' => 'author', 'model' => 'authors', 'content' => [ 'title' => $author->name(), 'presentation' => $author->presentation(), 'author' => $author->name(), 'uuid' => Uuid::generate(), ] ] ); } ];