- Issue created by @webfordreams
- Status changed to Needs review
7 months ago 9:19am 22 May 2024 - 🇧🇪Belgium daften
Do we need conditional rendering or will the second option also work for D10.1?
See issue reported in link_attributes:
https://www.drupal.org/project/link_attributes/issues/3423171
🐛
Link attributes not working after upgrading Drupal core from 10.2.2 to 10.2.3
Closed: works as designed
.
When upgrading from Drupal D10.1 to D10.2, link attributes will not be processed and displayed anymore.
Check output of any field with link attributes when on a D10.2 installation. See that the attributes are not displayed.
Change _button--field.twig
'button_attributes': item.content['#options'].attributes
to
'button_attributes': item.content['#url'].options['attributes']
Needs review
3.0
Code
Do we need conditional rendering or will the second option also work for D10.1?