Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When changing the menu settings on a page view from normal menu entry to no menu entry the link in the original menu is not deleted.
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedThis appears to be a bug in core; Views is doing the right thing, but the menu item doesn't get removed for some reason. I don't know if there's an issue in core about it.
Comment #2
dawehnerI can reproduce the error.
Take this view.
And you will an item in the main menu. No choose "no menu item" in the views configuration. Rebuild menu cache save the view etc.
Or here in drupal words:
If you have a hook_menu item which has 'type' => MENU_NORMAL and you set it to 'type' => MENU_CALLBACK, the menu link does not dissapear.
But this item is still availible in the database.
This is a bug of drupal core. I can't find another issue for this topic, so moved this to drupal core.
Comment #3
pluess CreditAttribution: pluess commentedI was able to reproduce this bug by copying a view which has a menu entry. The copy should not have a menu entry so I set it to "no menu". But the menu entry is still there. Unfortunately there's also no posibility to delete the menu entry by hand by editing the list of menu entrys.
How can we get rid of this menu entries until this bug is fixed?
Comment #4
sunSounds like a duplicate of #1079628: Programatically added Menu link is not removed after removing the code.