# Could not find Panel view for route: pages

**URL:** <https://forum.getkirby.com/t/could-not-find-panel-view-for-route-pages/34019>\
**Category:** Questions\
**Tags:** v4\
**Created:** [April 29, 2025, 3:57pm UTC](https://forum.getkirby.com/t/could-not-find-panel-view-for-route-pages/34019 "2025-04-29T15:57:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarkieMark](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/markiemark/32/14308_2.png) [@MarkieMark](https://forum.getkirby.com/u/MarkieMark)\
**Post date:** [April 29, 2025, 3:57pm UTC](https://forum.getkirby.com/t/could-not-find-panel-view-for-route-pages/34019/1 "2025-04-29T15:57:17Z")

</div>

Hi,

After reading the docs (at: [panel.menu | Kirby CMS](https://getkirby.com/docs/reference/system/options/panel/panel-menu)) I thought to quickly add a menu entry in the panel left-side menu “Pages”, listing all my pages. But I get this error: Could not find Panel view for route: pages

Anybody?

Thanks in advance.

```auto
            'pages' => [
                'icon' => 'page',
                'label' => 'Pagina\'s',
                'current' => function () {
                    $path = kirby()->request()->path();
                    return $path->first() === 'pages' && $path->nth(1) !== 'themas';
                }
            ],

```

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [April 29, 2025, 5:59pm UTC](https://forum.getkirby.com/t/could-not-find-panel-view-for-route-pages/34019/2 "2025-04-29T17:59:21Z")

</div>

Would be good to see the context around the code you shared to see if it’s being used correctly in the config.

I don’t think that’s necessarily the issue related to the error message you get but currently your menu entry is also missing either a link, dialog or drawer. It’s not quite clear what it should do when clicked.

---

<div class="post-metadata">

**Author:** ![MarkieMark](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/markiemark/32/14308_2.png) [@MarkieMark](https://forum.getkirby.com/u/MarkieMark)\
**Post date:** [April 29, 2025, 7:10pm UTC](https://forum.getkirby.com/t/could-not-find-panel-view-for-route-pages/34019/3 "2025-04-29T19:10:27Z")

</div>

Sorry, you’re right, here is my complete config, the objective is to show a list of all my pages by clicking the “Pagina’s” (top) menu item in the main menu.

```auto
<?php
// site/config/config.php

use Kirby\Toolkit\Str;
use Kirby\Cms\Page;

return [

    'panel' => [
        'menu' => [
            'pages' => [
                'icon' => 'page',
                'label' => 'Pagina\'s',
                'current' => function () {
                    $path = kirby()->request()->path();
                    return $path->first() === 'pages' && $path->nth(1) !== 'themas';
                }
            ],
            'site' => [
                'icon' => 'settings',
                'label' => 'Site Instellingen',
                'current' => function () {
                    return kirby()->request()->path()->first() === 'site';
                }
            ],
            'themas' => [
                'icon' => 'palette',
                'label' => 'Thema Beheer',
                'link' => 'pages/themas',
                'current' => function () {
                    $path = kirby()->request()->path();
                    return Str::startsWith($path->toString(), 'pages/themas');
                }
            ],
            '-', // Standaard separator in jouw config
            'users' => [
                'icon' => 'users',
                'label' => 'Gebruikers',
                 'current' => function () {
                    return kirby()->request()->path()->first() === 'users';
                }
            ],
            'system' => [
                'icon' => 'cog',
                'label' => 'Systeem',
                'current' => function () {
                    return kirby()->request()->path()->first() === 'system';
                }
            ]
        ]
    ],
    'debug' => true,
];

```

 ![kirby-route](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/8/8bb11328aad356c1abfd0b6d7487db30d3225755.jpeg)

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [April 29, 2025, 7:44pm UTC](https://forum.getkirby.com/t/could-not-find-panel-view-for-route-pages/34019/4 "2025-04-29T19:44:30Z")

</div>

Have you tried adding an actual `link` to that menu entry? Right now it’s neither setting a link or a dialog/drawer route, so it’s not clear what should/could happen when the menu entry is clicked.

---

<div class="post-metadata">

**Author:** ![MarkieMark](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/markiemark/32/14308_2.png) [@MarkieMark](https://forum.getkirby.com/u/MarkieMark)\
**Post date:** [April 29, 2025, 8:14pm UTC](https://forum.getkirby.com/t/could-not-find-panel-view-for-route-pages/34019/5 "2025-04-29T20:14:11Z")

</div>

yep I tried that like this:

```auto
    'panel' => [
        'menu' => [
            'pages' => [
                'icon' => 'page',
                'label' => 'Pagina\'s',
                'link' => 'pages',
                'current' => function () {
                    $path = kirby()->request()->path();
                    return $path->first() === 'pages' && $path->nth(1) !== 'themas';
                }
            ],

```

This doesn’t work and throws the error: Could not find Panel view for route: pages

However if I replace the link with an existing (sub)page within pages, this page is retreived and visible… like:

```auto
 'link' => 'pages\themas',

```

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [April 29, 2025, 8:32pm UTC](https://forum.getkirby.com/t/could-not-find-panel-view-for-route-pages/34019/6 "2025-04-29T20:32:29Z")

</div>

> [@MarkieMark](#):
>
> ` 'link' => 'pages',`

Right, you need a link to an existing page here, you cannot show a “list of all pages”, unless the page you link to contains that list, usually, the site entry takes care of linking to a list of all relevant pages, or you would have to create a custom area.

---

<div class="post-metadata">

**Author:** ![MarkieMark](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/markiemark/32/14308_2.png) [@MarkieMark](https://forum.getkirby.com/u/MarkieMark)\
**Post date:** [April 29, 2025, 9:02pm UTC](https://forum.getkirby.com/t/could-not-find-panel-view-for-route-pages/34019/7 "2025-04-29T21:02:59Z")

</div>

> [@texnixe](#):
>
> Right, you need a link to an existing page here, you cannot show a “list of all pages”, unless the page you link to contains that list, usually, the site entry takes care of linking to a list of all relevant pages, or you would have to create a custom area.

Thanks for that texnixe, meaning there is no such internal Kirby route: `/panel/pages` that’s what I made up (:- (with the help of AI gemini 2.5) and got me confused.

If we want a list of pages we use: `/panel/site` or we create a specific list page?

Thanks both of you for taking time to clarify

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [April 29, 2025, 9:15pm UTC](https://forum.getkirby.com/t/could-not-find-panel-view-for-route-pages/34019/8 "2025-04-29T21:15:38Z")

</div>

> [@MarkieMark](#):
>
> If we want a list of pages we use: `/panel/site` or we create a specific list page?

Right, either use the site, a specific “container” page (e.g. with a single section that lists all pages as a flat list) or a custom panel view.
