Create a link in side navigation

Hey,
is there a way to add a link in the side navigation e.g. “About us”. And when i click then link to “panel/pages/about”.

You can do that via the panel.menu option:

<?php
use Kirby\Cms\App;

return [
	'debug' => true,
	'panel' => [
		'menu' => [
			'site',
			'system',
			'users',
			'-',
			'about' => [
				'icon'    => 'pen',
				'label'   => 'About',
				'link'    => 'pages/about',
				'current' => function (): bool {
					$path = App::instance()->request()->path()->toString();
					return Str::contains($path, 'pages/about');
				},
			],
		],
	],
];

There seems to be something not quite working as expeacted, as when using this example, the site item is always active as well when about is active.

Edit: ok, for this case to work properly, you have to redefine current for site as well:

		'site' => [
				'current' => function (): bool
				{
					$path = App::instance()->request()->path()->toString();
					return Str::contains($path, 'site');
				},
			],

Also note that you have to list all menu entries with this approach, items not listed will disappear from the side nav.

Hi,
I tried this and it works partially.
yes it highlights the site-button when clicked on it, but it doesn’t stay highlighted when editing a page, which is the normal behavior.

Perhaps there is a better solution? but I can’t find it.
I tried the code from the Reference (https://getkirby.com/docs/reference/system/options/panel#panel-menu), but I doesn’t work like mentioned here https://forum.getkirby.com/t/current-panel-menu-item-not-highlighted/30889

is there a final solution for a normal behavior of the ‘site’ area when custom menu entry are added?