Problem/Motivation

I installed and enabled this module after patching in Taxonomy workflows, and I am getting the following error message:

Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.taxonomy_term.revision" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 206 of /var/www/docroot/core/lib/Drupal/Core/Routing/RouteProvider.php).

Steps to reproduce

Install and enable the module, navigate to any taxonomy revisions page: /taxonomy/{nid}/revisions

Proposed resolution

It looks like the main route is named: "entity.taxonomy_term.version_history" in taxonomy_revisions_ui.routing.yml

But on line 118 of src/Controller/TaxonomyRevisionController.php this route is specified: "entity.taxonomy_term.revision"

That route only appears in the Controller and in src/Routing/RouteSubscriber.php on line 17.

I'm assuming "entity.taxonomy_term.revision" and entity.taxonomy_term.version_history" are meant to be the same route, so they should be updated to all match.

I've tested on one of my local environments and it looks like updating the Controller and RouteSubscriber to use "entity.taxonomy_term.version_history" fixes the issue.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

    Comments

    DMRupp created an issue. See original summary.

    viren18febs’s picture

    Status: Active » Needs review
    StatusFileSize
    new1.25 KB

    Hi @DMRupp
    I have tested and added a patch, please review.

    viren18febs’s picture

    StatusFileSize
    new1.3 KB
    shyam_bhatt’s picture

    Status: Needs review » Reviewed & tested by the community
    StatusFileSize
    new46.19 KB

    @viren18febS I have checked the #2 patch. Working fine.

    Installed and enabled the module, and navigated to any taxonomy revisions page: /taxonomy/{nid}/revisions, after adding the patch there are no error messages visible.
    2023-11-09/3400148-3-after.png

    + Moving to RTBC