Menu IDs are Not Respected

Created on 4 January 2017, over 7 years ago
Updated 13 November 2023, 10 months ago

This module is much needed. I hope the module will move to core someday soon.

I have a multiple language website in English, Spanish and Chinese. Each of the languages has a separate primary menu. This is done as core does not currently support menu translation. Each of the three primary menus create a block that is only visible for the language of the menu. All this is working well.

I would like to use this module to add an attribute class to two menu links in each of the three menus. The css associated with the attribute class makes the menu links bold.

I installed this module. I added the attribute class to two links in our English primary menu. The two menu links became bold -- all good.

I added the attribute class to our Chinese menu. The two links were removed from the Chinese menu and stored in the English menu. The attribute class was added to the menu links but are displayed as part of the English menu -- in random places of the menu tree. This leads me to the conclusion that the current code does not handle the situation where there are multiple primary menus.

It would be great if this module would save the menu id on fetch/display and use the same menu id when the menu link is stored -- back into the menu where it was fetched.

πŸ› Bug report
Status

Closed: cannot reproduce

Version

11.0 πŸ”₯

Component
Menu systemΒ  β†’

Last updated 1 day ago

Created by

πŸ‡ΊπŸ‡ΈUnited States Greg Sims

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¦πŸ‡ΊAustralia acbramley

    Very hard to tell from the IS and comments what this issue is actually about, but perhaps this is solved by https://www.drupal.org/project/menu_link_attributes β†’ ?

    If this issue is still relevant, please provide more context and clear details on what the bug is with steps to reproduce from a fresh core installation.

    Thanks!

  • Status changed to Closed: cannot reproduce 10 months ago
  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    I think enough time has passed here without the original reporter providing more information.

    If you can provide steps to reproduce here, please re-open

Production build 0.71.5 2024