Check that the URL object is the same can fail when it shouldn't

Created on 23 June 2025, about 10 hours ago

Problem/Motivation

The $entity->toUrl('canonical') == $url check in RabitHoleLinksGenerator was returning false, and so the removing of the link was never happening.

The only difference was that for the canonical result the accessManager was false and for the $url variable "accessManager =
Drupal\Core\Access\AccessManager"

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

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