Route "entity.workflow_state.canonical" does not exist." on views.view.workflow_entity_history

Created on 20 February 2024, 4 months ago
Updated 5 June 2024, 23 days ago

Problem/Motivation

When activating the Workflow History view, that is to be appearing on the 'Workflow history' tab, the following error appears:

Uncaught PHP Exception Symfony\Component\Routing\Exception\RouteNotFoundException: "Route "entity.workflow_state.canonical" does not exist." at core\lib\Drupal\Core\Routing\RouteProvider.php line 206

Steps to reproduce

Import optional configuration file views.view.workflow_entity_history.
Go to a node, e.g. node/3/workflow.
WSOD with above error..

Proposed resolution

When removing the 'Link label to the referenced entity' setting in the field settings of the From and To states, the view works fine.

Remaining tasks

There must be a programmatically fine solution for all users.

The patch adds a 'workflow_state' ViewsField class, that suppresses the 'Link label to the referenced entity' setting in the field settings of the From and To states.

This way, the fields cannot be set anymore. Existing views may have a problem. The field settings must be re-saved.

There is still no Route ""entity.workflow_state.canonical"" .

πŸ› Bug report
Status

Fixed

Version

1.7

Component

Views

Created by

πŸ‡³πŸ‡±Netherlands johnv

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024