Problem/Motivation

When visiting the route on a configured request "http-config-request" - Drupal throws an error:
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.http_config_request.canonical" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 214 of core/lib/Drupal/Core/Routing/RouteProvider.php).

Steps to reproduce

  • Be on Drupal 11.3
  • Maybe related to Gin admin theme with the new Navigation (stable now) Drupal module enabled
  • Navigate to a configure request route in HTTP Client Manager

Proposed resolution

Add "getCanonicalRoute" functionality for routes.

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

spfaffly created an issue. See original summary.

aayushpathak’s picture

working on it!

aayushpathak’s picture

Status: Active » Needs review
aronne’s picture

Status: Needs review » Reviewed & tested by the community

Hi @aayush7 and thank you for your contribution.
I've tested your patch and it works correctly.

  • 4c94b2a6 committed on 11.x
    feat: #3569029 Route "entity.http_config_request.canonical" does not...
aronne’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.