- π·π΄Romania amateescu
Note that there's also a core patch dealing with this problem: π Aliased paths cannot be set as front page Needs review
+++ b/src/EventSubscriber/RouteNormalizerRequestSubscriber.php @@ -97,7 +123,16 @@ class RouteNormalizerRequestSubscriber implements EventSubscriberInterface { + $front_alias = $this->pathAliasManager->getAliasByPath($front_uri); + $current_alias = $this->pathAliasManager->getAliasByPath($current_path);
This will run path alias processing before routing is done (i.e. before
\Drupal\path_alias\EventSubscriber\PathAliasSubscriber::onKernelController()
), and will disable core's pre-loading optimization. See #2508217-14: AliasManager should use the current route match for outbound alias pre-loading cache keys β for details.