Wrong path in exception ResourceNotFoundException

Created on 18 December 2022, over 1 year ago
Updated 22 February 2024, 4 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 about 7 hours 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.69.0 2024