Problem/Motivation
The change in #3579782: Exclude disabled links before loading menu tree has caused an unexpected behaviour on our site where children of disabled parent links are now rendering in the menu, essentially at the first level, in place of their parent.
Steps to reproduce
- Place a SF block with "Expand all items" and more than one level
- Create a top level link that is disabled, with children links that are enabled
- See the child links are rendered in the menu
Proposed resolution
Would you consider reverting this to seek a solution that doesn't cause this behaviour? We could work around it by revamping the menu or by changing the config not to expand all links, but I can't imagine we are the only ones who will hit this.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3614590-children-of-disabled.patch | 725 bytes | dkmishra |
Issue fork superfish-3614590
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 #5
dkmishra commentedPatch attached.
Comment #6
dkmishra commentedComment #7
pameeela commentedThis should be an MR, not a patch, and it's not really helpful to just revert the change -- the module maintainer needs to weigh in on how they would like to handle this. They may decide not to fix, since it could be considered a misconfiguration I guess.
Ideally, the change can remain in place without the unexpected side effect.
Comment #8
dkmishra commentedMR is already up at !27 - the patch in #5 is just the exported diff from that fork branch for convenience. Happy to adjust the approach if the maintainer prefers something different. Thank you!
Comment #11
ivnishComment #12
ivnishComment #14
lobsterr commentedThank you for your contribution