Skip to content

Commit b864fa1

Browse files
committed
fix: issue with redirect where source is a siteaccess with en URI match
1 parent 4b8bf86 commit b864fa1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bundle/Core/UrlWildcardRouter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function matchRequest(Request $request): array
3333
{
3434
try {
3535
// Manage full url : http://host.com/uri
36-
$requestedPath = $request->attributes->get('semanticPathinfo', $request->getPathInfo());
36+
$requestedPath = $request->getPathInfo();
3737
$requestUriFull = $request->getSchemeAndHttpHost().$requestedPath;
3838
$urlWildcard = $this->wildcardService->translate($requestUriFull);
3939
} catch (Exception $e) {
@@ -51,6 +51,7 @@ public function matchRequest(Request $request): array
5151

5252
if (0 === strpos($urlWildcard->uri, 'http://') || 'https://' === substr($urlWildcard->uri, 0, 8)) {
5353
$params += ['semanticPathinfo' => trim($urlWildcard->uri, '/')];
54+
$params += ['prependSiteaccessOnRedirect' => false];
5455
} else {
5556
$params += ['semanticPathinfo' => '/'.trim($urlWildcard->uri, '/')];
5657
}

0 commit comments

Comments
 (0)