[regression] Entity::toUrl() without argument is broken for entity types with a URI callback

Created on 13 February 2024, 10 months ago
Updated 29 February 2024, 10 months ago

Problem/Motivation

πŸ“Œ Fall back to 'edit-form' as default $rel in EntityBase::toUrl() Fixed accidentally broke support for calling $entity->toUrl() if $entity is of an entity type that specifies a uri_callback (and does not specify any link templates). This was found in (now contrib) Aggregator module: πŸ› Blocks cause WSOD; Cannot generate default URL Active

If a URI callback is specified that should always be used as a fallback instead of throwing an exception.

Steps to reproduce

Proposed resolution

Fall back to the URI callback, if there is one, instead of throwing an exception - even if no relationship is specified.

Remaining tasks

User interface changes

-

API changes

None. (Well, it reverts an accidental minor API break from πŸ“Œ Fall back to 'edit-form' as default $rel in EntityBase::toUrl() Fixed .)

Data model changes

-

Release notes snippet

πŸ› Bug report
Status

Fixed

Version

10.2 ✨

Component
EntityΒ  β†’

Last updated about 15 hours ago

Created by

πŸ‡©πŸ‡ͺGermany tstoeckler Essen, Germany

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