Contextual Link throws RouteNotFoundException: Route "view.this" does not exist

Created on 22 October 2022, over 1 year ago
Updated 10 June 2024, 17 days ago

Problem/Motivation

The changes from Introduce Contextual Link to Reorder View Page Fixed introduced an error when viewing the draggable view (the one that is draggable, not the one that only uses the sorts)

Symfony\Component\Routing\Exception\RouteNotFoundException: Route "view.this" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName()

The error is only shown in the error log and in the js console. Nothing is displayed on the page.

Proposed resolution

draggableviews_contextual_links_alter needs to check for $sort['draggable_views_reference'] === 'this' to prevent it from trying to add a link to the invalid route view.this.

🐛 Bug report
Status

Needs review

Version

2.1

Component

Code

Created by

🇺🇸United States loze

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024