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

Created on 14 August 2025, 22 days 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

  • Pipeline finished with Success
    28 days ago
    Total: 281s
    #568214
  • Issue created by @krisahil
  • Pipeline finished with Failed
    22 days ago
    Total: 299s
    #573161
  • First commit to issue fork.
  • Pipeline finished with Skipped
    21 days ago
    #573666
  • Pipeline finished with Skipped
    21 days ago
    #573668
  • Pipeline finished with Skipped
    21 days ago
    #573667
  • πŸ‡·πŸ‡΄Romania amateescu

    Makes sense :) Merged into 2.0.x, thanks!

  • Pipeline finished with Success
    10 days ago
    Total: 348s
    #582469
  • Pipeline finished with Success
    9 days ago
    Total: 198s
    #583362
  • Pipeline finished with Canceled
    8 days ago
    #584601
  • Pipeline finished with Canceled
    8 days ago
    #584603
  • Pipeline finished with Success
    8 days ago
    #584605
  • Pipeline finished with Canceled
    8 days ago
    #584616
  • Pipeline finished with Failed
    8 days ago
    #584617
  • Pipeline finished with Failed
    8 days ago
    #584623
  • Pipeline finished with Failed
    8 days ago
    #584633
  • Pipeline finished with Failed
    8 days ago
    Total: 338s
    #584679
  • Pipeline finished with Failed
    8 days ago
    Total: 257s
    #584686
  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Pipeline finished with Failed
    3 days ago
    Total: 281s
    #588468
  • Pipeline finished with Failed
    3 days ago
    Total: 342s
    #588470
  • Pipeline finished with Failed
    3 days ago
    Total: 278s
    #588475
  • Pipeline finished with Failed
    3 days ago
    Total: 242s
    #588481
  • Pipeline finished with Failed
    3 days ago
    Total: 319s
    #588480
  • Pipeline finished with Failed
    3 days ago
    Total: 290s
    #588492
  • Pipeline finished with Success
    3 days ago
    Total: 292s
    #588501
  • Pipeline finished with Success
    3 days ago
    Total: 271s
    #588507
  • Pipeline finished with Success
    3 days ago
    Total: 437s
    #588510
Production build 0.71.5 2024