Problem/Motivation
When investigating #3345151: Error when removing a menu I realized it is a complex juggling of pieces.
Redirect tries to generate a canonical URL for an entity that requires something that was delete in predelete step for that same entity.
Steps to reproduce
Install redirect 8.x-1.11 and group_content_menu. Configure it and try to delete a menu that belongs to a group
Proposed resolution
Ideally the redirect module shouldn't be bothered for the bugs of other modules but I think the logic here is not 100% correct since the redirects should be deleted before the entity and other hook_entity_delete that might happen.
Remaining tasks
Code the change
Issue fork redirect-3543679
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
rodrigoaguileraPlease review
Comment #4
rodrigoaguileraComment #5
tuwebo commentedI've just run into the related issue #3345151: Error when removing a menu, and this MR seems to be solving it. Thanks!
Comment #6
heddnI think this makes sense. Once this lands, I'll commit #3345151: Error when removing a menu
Comment #7
berdirThanks, merging.
Comment #9
berdirprevious minor is currently broken everywhere, so I can't get this past the merge train and I don't have permission to disable merge trains. Waiting on versions change.
Comment #11
berdirMerged.