Change how link attributes are processed

Created on 22 May 2024, 7 months ago

Problem/Motivation

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.

Steps to reproduce

Check output of any field with link attributes when on a D10.2 installation. See that the attributes are not displayed.

Proposed resolution

Change _button--field.twig

'button_attributes': item.content['#options'].attributes

to

'button_attributes': item.content['#url'].options['attributes']

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇧🇷Brazil webfordreams

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024