Did some work for this. Still very WIP, tokens only for bundle config at the moment.
rgeerolf → created an issue.
Rerolled patch from latest MR.
Re-roll for D10.2
I updated the latest patch from facine because the database update collided with the address 2.0 database update added after #16 was created.
I'm having the same issue in the template of a contrib module.
I tried the MR against 1.3 and the latest dev and I got an error when I tried to edit the menu link.
TypeError: _menu_link_attributes_add_attributes(): Argument #2 ($menu_link_options) must be of type array, null given, called in /var/www/html/web/modules/contrib/menu_link_attributes/src/Plugin/Menu/Form/ViewsMenuLinkWithAttrForm.php on line 19 in _menu_link_attributes_add_attributes() (line 46 of modules/contrib/menu_link_attributes/menu_link_attributes.module).
Was also hit by this but my case is like described in #11 🐛 [regression] missing menu active trail in Drupal 9.5.9 Needs work and #16 🐛 [regression] missing menu active trail in Drupal 9.5.9 Needs work . I have taxonomy_menu and my term page is generated from a view. So if I understand correctly in this case the issue is in Taxonomy Menu (#3376390) 🐛 Only the first level is shown in the menu Active and not this core issue?
I have a project that needs updating to D10, depending on this functionality (my bad). Rerolled the patch for the current 8.x-1.x (1.20) and sharing it in case anyone needs it.
Re-rolled patch #9 for 2.1
#11 is working for for NL Postal codes here.