Deleting menu inadvertently deleted view

Created on 28 May 2025, 2 days ago

Problem/Motivation

When a menu is deleted via Structure โ†’ Menus, any Views page displays that had a menu link in that menu are considered dependent configuration. As a result, the entire View configuration (including unrelated block and page displays) is deleted without any user-facing warning or confirmation of this cascading effect.

Example/to reproduce
I just lost a view that had 4 pagers displays and 8 block displays, all very complex and lengthy configurations. One of those page displays had a link on the menu I deleted. I lost the entire View (all 4 page displays and 8 block displays) without any prompt or warningโ€”leading to catastrophic data loss.

Proposed resolution

Expected Behaviour:
When deleting a menu, Drupal should prevent the deletion until dependencies are manually cleared (similar to how fields with data cannot be deleted without clearing dependencies).

๐Ÿ› Bug report
Status

Active

Version

10.4 โœจ

Component

menu system

Created by

๐Ÿ‡จ๐Ÿ‡ฆCanada OMD

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

Comments & Activities

Production build 0.71.5 2024