From f443a87f3579f0bd6e0fb6146bcb744901379af9 Mon Sep 17 00:00:00 2001 From: Bernhard Schmitt Date: Tue, 27 Aug 2024 13:24:08 +0200 Subject: [PATCH] Male URI suffix configurable for the ESFrontendNode RoutePart --- .../EventSourcedFrontendNodeRoutePartHandler.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Neos.Neos/Classes/FrontendRouting/EventSourcedFrontendNodeRoutePartHandler.php b/Neos.Neos/Classes/FrontendRouting/EventSourcedFrontendNodeRoutePartHandler.php index ae240471fae..2b40a2a75bb 100644 --- a/Neos.Neos/Classes/FrontendRouting/EventSourcedFrontendNodeRoutePartHandler.php +++ b/Neos.Neos/Classes/FrontendRouting/EventSourcedFrontendNodeRoutePartHandler.php @@ -189,7 +189,8 @@ public function matchWithParameters(&$requestPath, RouteParameters $parameters) throw new ResolvedSiteNotFoundException(sprintf('No site found for siteNodeName "%s"', $siteDetectionResult->siteNodeName->value)); } - $remainingRequestPath = $this->truncateRequestPathAndReturnRemainder($requestPath, $resolvedSite->getConfiguration()->uriPathSuffix); + $uriPathSuffix = $this->options['uriPathSuffix'] ?? $resolvedSite->getConfiguration()->uriPathSuffix; + $remainingRequestPath = $this->truncateRequestPathAndReturnRemainder($requestPath, $uriPathSuffix); $dimensionResolvingResult = $this->delegatingResolver->fromRequestToDimensionSpacePoint( RequestToDimensionSpacePointContext::fromUriPathAndRouteParametersAndResolvedSite(