"Delete" action is shown as text and not link for Views-generated link in a menu

Created on 18 March 2025, 22 days ago

Problem/Motivation

On Drupal 10.4.4, when viewing the links of a menu, I noticed that the "Delete" action in Operations dropbutton is shown as text and not as link for a Views-generated link I had. As far as I understand, I cannot delete that link from the Menu page but only from the View, so having this action as text seems to be a bug.

The Views-generated link "Delete" action:

The manually-added link "Delete" action for comparison:

Steps to reproduce

  • Create a View Page and add it to a Menu as "Normal menu entry".
  • Go to that Menu's edit page /admin/structure/menu/manage/[menu_name].
  • Click the Operations dropbutton and navigate to "Delete".

Proposed resolution

Unfortunately I don't have one.

🐛 Bug report
Status

Active

Version

10.4

Component

menu_ui.module

Created by

🇬🇷Greece gkffzs

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

Comments & Activities

  • Issue created by @gkffzs
  • 🇳🇿New Zealand quietone

    Changes are made on on 11.x (our main development branch) first, and are then back ported as needed according to the Core change policies .

  • 🇮🇳India Ishani Patel

    Hello @gkffzs,
    I've checked and followed steps as you mentioned regarding delete action for menu.
    So I've two solution for that,
    1) Hide the "Delete" action for Views-generated links using small hook form alter
    2) Improve the appearance instead of removing the "Delete" action, we can create a template override to display it as a disabled button or a tooltip indicating it cannot be deleted from

    Please let me know your thoughts for which solution is the best.

    Thank you!

Production build 0.71.5 2024