Menu classes stripped

Created on 11 August 2016, over 8 years ago
Updated 4 September 2024, 4 months ago

When implementing 'Link Attributes' module and adding a class to a standard menu item, I find that previous <li> classes are all removed AND the class that I assign via the UI does not show.

Example before assigning a class to a menu item:

<li class="mmenu-mm-list-mlid-4 mmenu-mm-list-path-sample">
    <a href="/sample" class="mmenu-mm-list ">
      <i class="icon-list2"></i>
      <span class="mmenu-block-title">Support Services</span>  
    </a>
</li>

Example after assigning a class:

<li class="">
  <a href="/sample" class="mmenu-mm-list ">
    <i class="icon-list2"></i>
    <span class="mmenu-block-title">Support Services</span>
  </a>
</li>

Not sure if its my use of the 'Mobile Sliding Menu' module or not, but the issue continued even after I uninstalled that module and cleared cache. Whenever I set a menu item attribute, not only does it remove all previous classes (permanently), it never adds the class that I assign via this module.

Is this happening to anyone else?

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇦🇺Australia Stephen Ollman Canberra

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.

Production build 0.71.5 2024