Closed (works as designed)
Project:
Drupal core
Version:
9.3.x-dev
Component:
block.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Sep 2017 at 18:19 UTC
Updated:
25 Apr 2022 at 20:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ibustosThe problem seems to be in
Drupal\Core\Path\PathMatcheras this fails to match the path properly. This patch modifiescore/tests/Drupal/Tests/Core/Path/PathMatcherTest.phpillustrating the problem.Comment #3
ibustosComment #10
catchThe wildcard counts for anything between the two path parts, including additional forward slashes, so while I understand the use case, this is 'by design'. For cases like this you'd be better of writing a small block visibility plugin similar to the node type one.