links.task refers to non existing base_route smart_date.settings

Created on 15 May 2024, 7 months ago
Updated 29 May 2024, 7 months ago

Problem/Motivation

File "smart_date.links.task.yml" refers to a non existing base_route "smart_date.settings" which does not exists.

In some cases throws an exception.

Symfony\Component\Routing\Exception\RouteNotFoundException: Route "smart_date.settings" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 206 of /DRUPAL_ROOT/core/lib/Drupal/Core/Routing/RouteProvider.php).

Steps to reproduce

To reproduce it requires a contrib/custom module which deals with Primary or Secondary tabs, and assumes that the task definition is correct.

Proposed resolution

Since "smart_date.routing.yml" does not define any route with id "smart_date.settings",
and "\Drupal\smart_date\Routing\RouteSubscriber::alterRoutes" also does not provide such a route, therefore task definition bellow is never gonna be valid, so delete it.

smart_date.settings_tab:
  route_name: smart_date.settings
  title: 'Settings'
  base_route: smart_date.settings

Remaining tasks

Delete the invalid links.task definition.
In the same time I would add the following line to the "smart_date.info.yml"

configure: entity.smart_date_format.canonical

User interface changes

none

API changes

?

Data model changes

none

🐛 Bug report
Status

Fixed

Version

4.1

Component

Code

Created by

🇭🇺Hungary Sweetchuck Budapest

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