Closed (duplicate)
Project:
Drupal core
Version:
9.1.x-dev
Component:
menu system
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
25 May 2018 at 18:39 UTC
Updated:
14 Jun 2020 at 14:34 UTC
Jump to comment: Most recent, Most recent file
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.