kirby
kirby copied to clipboard
`panel.menu`: default for `current`
To be considered/though through:
It could be more convenient to have a fallback/default for current
if no specific one is defined by a custom menu entry. The default could be based on the link
attribute:
'current' => function (string $current): bool {
$path = App::instance()
->request()
->path()
->toString();
return Str::contains($path, 'pages/texts');
}