Link attributes not working after upgrading Drupal core from 10.2.2 to 10.2.3

Created on 22 February 2024, 4 months ago
Updated 4 June 2024, 21 days ago

Problem/Motivation

We've updated Drupal Core from 10.2.2 to 10.2.3 and our link attributes are no longer displaying.

I'm going to try and spend some time investigating further, I'll update this ticket with details of what I find. If anyone else has experienced this - or has upgraded to 10.2.3 without issue, please let me know. Thanks!

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom nicrodgers Monmouthshire, UK

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

Comments & Activities

  • Issue created by @nicrodgers
  • Status changed to Closed: works as designed 4 months ago
  • πŸ‡¬πŸ‡§United Kingdom nicrodgers Monmouthshire, UK

    Turns out it was an issue with our theme.

    Previously, in hook_preprocess_field we had $variables['items'][x]['content']['#options']['attributes'] but now they are in the url object's attributes.

  • πŸ‡ΊπŸ‡ΈUnited States cdupree

    Our site has this issue as well.
    For others with the same problem, we had success performing a find and replace in our theme as follows:

    Find:

    ['#options']['attributes']

    Replace:

    ['#url'].options['attributes']

  • πŸ‡§πŸ‡ͺBelgium carlovdb

    #3 worked for us..
    thx

Production build 0.69.0 2024