Error about missing "move-to-workspace" link template

Created on 14 August 2025, 1 day ago

Problem/Motivation

I recently updated a site running wse 2.0.0-alpha10 from Drupal core 10.4 to 11.2. After this upgrade, I noticed errors like this:

Drupal\Core\Entity\Exception\UndefinedLinkTemplateException: No link template 'move-to-workspace' found for the 'patternkit_block' entity type in Drupal\Core\Entity\EntityBase->toUrl() (line 227 of /var/www/drupal/web/core/lib/Drupal/Core/Entity/EntityBase.php).

Steps to reproduce

This error occurs when I view a Workspace's management page, and the changed entities report contains an entity type that doesn't support "canonical" or "edit-form" link templates (e.g., Patternkit entity from Drupal project "patternkit").

Proposed resolution

I think this has a simple fix -- Before using a link template, ensure that the entity type supports it.

This is based on similar logic in \Drupal\wse\Routing\RouteSubscriber::alterRoutes.

Remaining tasks

Update tests?

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States krisahil

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