Hello,
on the Edit menu "Main navigation" page, I have menu items listed.
I can create or delete menu items.
but doing such action, I am being redirected to the Menus management page rather than the Edit menu page.
and that is not practical when I want to create many menu items, or remove many of them.
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #20 | Edit_menu_Main_navigation_drupal9.png | 62.54 KB | shimpy |
| #20 | Menus_drupal9.png | 61.24 KB | shimpy |
| #17 | 2975407-17.patch | 1.68 KB | nikitagupta |
| #12 | 2975407-menu-link.pass-12.patch | 1.7 KB | larowlan |
| #12 | 2975407-menu-link.fail-10.patch | 933 bytes | larowlan |
Comments
Comment #2
Wisamx commentedComment #3
cilefen commentedComment #5
ivnishSame problem
Comment #6
bmx269 commentedThis is a very irritating way that the menu works.
Comment #9
larowlanThis is indeed annoying, working on a fix
Comment #10
larowlanThis adds the fix and a test
Comment #11
larowlanComment #12
larowlanAh, so
linkByHrefExistsis actual 'link containing href exists' so adding another assert that the destination isn't there.Comment #13
ivnish#12 works!
Comment #14
ivnishComment #15
larowlanWe still need a failing test here
Comment #17
nikitagupta commentedComment #18
ketikagrover commentedComment #19
shimpyComment #20
shimpyI have tested patch #17 . Applied successfully and working as per functionality. Attaching screenshots for reference
Before applying patch

After applying patch
Comment #21
sivaji_ganesh_jojodae commentedNot sure if $this->assertSession() needs instantiation twice.
Maybe changed
to
Comment #22
alexpottThis is a duplicate of #2957953: Editing menus user-experience has regressed - which is an early issue, has more explicit testing. I think we should merge the approaches. This was caused by #2767857: Add destination to edit, delete, enable, disable links in entity list builders which I've kind of always felt should have been rolled back.
I quite like the fix here as it removes the default redirection completely but it'd be great continue to work in #2957953: Editing menus user-experience has regressed and add more test coverage of deleting and editing a menu-link via the UI so we can be sure that everything behaves as we'd like.