- Issue created by @divya.lakshman
- 🇬🇧United Kingdom aaron.ferris
I don't seem to be able to reproduce this, can you please provide complete reproduction steps?
What ive tried
1. Drupal 10.2.6
2. Latest version of this module
3. Enable the module
4. Add a link field to the basic page content type
5. Configure the form display to use link with attributes
6. Configure for all attributes
7. Add a new basic page
8. Add some values for the attributes
9. SaveThe link contains the attributes as I would expect, the attribute values are also present in the field values on edit.
- Status changed to Postponed: needs info
7 months ago 7:24pm 17 May 2024 - Status changed to Active
7 months ago 9:52am 21 May 2024 - 🇪🇸Spain idiaz.roncero Madrid
I'm having the same issue.
Note that, as the title of the issue says, this is only happening for menu attributes, this is, with the link_attributes_menu_link_content module enabled and when editing menu links.
- 🇬🇧United Kingdom aaron.ferris
Can't seem to reproduce this on menu links either.
1. Drupal 10.2.6
2. Latest version of this module
3. Enable the module and link_attributes_menu_link_content
4. Add a test menu item to the main navigation menu
5. Edit the item, add some attributes
6. Save<a href="https://www.google.co.uk" target="_self" rel="my-rel" class="my-class primary-nav__menu-link primary-nav__menu-link--link primary-nav__menu-link--level-1" data-drupal-selector="primary-nav-menu-link-has-children"> <span class="primary-nav__menu-link-inner primary-nav__menu-link-inner--level-1">Test</span> </a>
- 🇪🇸Spain idiaz.roncero Madrid
It looks like menu_link_attributes module being enabled at the same time might be the culprit.
Makes sense, as both modules perform alterations on the menu_link_content form.
@divya.lakshman can you check if this module is enabled on your install and try disabling it?
- 🇬🇧United Kingdom aaron.ferris
Thats a good find @idiaz.roncero, ive just pulled that module down, enabled it and am indeed seeing the issue from the OP
- Status changed to Closed: works as designed
7 months ago 7:18pm 21 May 2024 - 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
We split the sub module to allow people to use the other one for menu if they like