Error 10.2 - Remove canonical link template in Remote entity annotation because it has no canonical route

Created on 5 February 2024, 11 months ago
Updated 7 August 2024, 5 months ago

Problem/Motivation

when updating to Drupal Core 10.2.x you will receive an error
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.remote.canonical" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (regel 206 van /home/fedpol_webplatform/public_html/web/core/lib/Drupal/Core/Routing/RouteProvider.php).

This is because the Remote entity annotation has a canonical link specified and some modules like "responsive_preview" checks if these routes have a canonical and if so render it. This produces a fatal error.

Proposed resolution

Remove it like in: https://www.drupal.org/project/entity_browser/issues/3410285 ๐Ÿ› Remove canonical link template in EntityBrowser entity annotation because it has no canonical route Needs review

Remaining tasks

Will provide merge request

๐Ÿ› Bug report
Status

RTBC

Version

3.0

Component

Code

Created by

๐Ÿ‡ง๐Ÿ‡ชBelgium mschudders

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