admin menu gets blocked with menu_ui item "/admin"

Created on 12 December 2024, 10 days ago

Problem/Motivation

If menu_ui module is activated and there is manually created a custom menu link with path "/admin" inside the Admin menu (/admin/structure/menu/manage/admin) the menu items with path "/admin/*" in this menu disappear and the path "/admin" is not accessible any more even for user/1.
Error message form dblog:

Path: /admin. Drupal\Core\Http\Exception\CacheableAccessDeniedHttpException: in Drupal\Core\Routing\AccessAwareRouter->checkAccess() (line 115 of /path/to/drupal/web/core/lib/Drupal/Core/Routing/AccessAwareRouter.php).

This was recognized at a 10.2.* system but also exists on a vanilla core 11.0.9 system with install profile "minimal" and additional only activated module "menu_ui".

A manual fix is deleting the menu item with "/admin/structure/menu/item/{menu item id}/edit". But because the menu items disappear the menu item id needs to retrieved on another way.

Steps to reproduce

Create menu item as described above.

Proposed resolution

?

Remaining tasks

?

User interface changes

?

Introduced terminology

?

API changes

?

Data model changes

?

Release notes snippet

?

🐛 Bug report
Status

Active

Version

11.0 🔥

Component

menu_ui.module

Created by

🇩🇪Germany c-logemann Frankfurt/M, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024