Wrong path in exception ResourceNotFoundException

Created on 18 December 2022, about 2 years ago
Updated 22 February 2024, 10 months ago

Problem/Motivation

While Debugging i catched exception ResourceNotFoundException and wondered about the path: the printed path is the current path and not the path from given request.

Steps to reproduce

$router = \Drupal::service('router');
try {
  $router->match('/abc/def/ghi');
}
catch(\Symfony\Component\Routing\Exception\ResourceNotFoundException $e) {
  dpm($e);
}

Proposed resolution

Fix the bug with patch.

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
RoutingΒ  β†’

Last updated 3 days ago

Created by

πŸ‡©πŸ‡ͺGermany jan kellermann

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.71.5 2024