Fix handling of default values for placeholders.
In order to make default placeholders work, we had to modify the fit and path outline routines to ignore them. That also necessitated switching back to the original outline/ancestors logic from Drupal 7, which with a very slight tweak to the masks and '/'-prefix on paths still works just as it should.
parent
fac9b6ed
No related branches found
No related tags found
Showing
- core/lib/Drupal/Core/Routing/PathMatcher.php 14 additions, 9 deletionscore/lib/Drupal/Core/Routing/PathMatcher.php
- core/lib/Drupal/Core/Routing/RouteCompiler.php 35 additions, 5 deletionscore/lib/Drupal/Core/Routing/RouteCompiler.php
- core/modules/system/lib/Drupal/system/Tests/Routing/PathMatcherTest.php 80 additions, 2 deletions...ystem/lib/Drupal/system/Tests/Routing/PathMatcherTest.php
- core/modules/system/lib/Drupal/system/Tests/Routing/RouteTest.php 20 additions, 0 deletions...ules/system/lib/Drupal/system/Tests/Routing/RouteTest.php
Please register or sign in to comment