Description of the need
Follow-up to https://github.com/backdrop/backdrop-issues/issues/2782 and https://github.com/backdrop/backdrop-issues/issues/5397.
Menu items have forever had the vague "Expanded" option, which affects the display of menu links when displayed in a hierarchical tree. Note that the "Expanded" option does not affect the drop-down menu display and can also be overridden using the "Show all menu links" option.
Proposed solution
Instead of having "Expanded" options at the menu link level, which only applies in very specific situations, move the settings for expanding menu links to the block level, and only show this setting when using the "Hierarchical Tree" display option:

The obvious downside of this approach would be that if you place the same menu block in multiple places on the site, you would need to reconfigure the list of expanded links multiple times, unless you used a contrib module like mini_layouts to reuse the same block configuration across multiple layouts.
Recent comments
It's your best assistant, but don't trust it blindly test everything thoroughly. I think it's also the best teacher if you want to learn programming.
Thoughts on AI generated code contrib?
Hi Nombre Apellido We do hosting in the UK and look after a Spanish domain...If no one closer can help, please don't hesitate to reach out. The site I'm creating is for a...
innodus (Barcelona) listing – website looks compromised or no longer theirs?
This is Robert's Backdrop profile: https://backdropcms.org/account/robertgarrigos You can see he is very active in Backdrop and very experienced. And this is his company...
innodus (Barcelona) listing – website looks compromised or no longer theirs?