Skip to content

Commit 842a70c

Browse files
author
Victor ALBERT
committed
Fix : Redirect to request Uri instead of pathInfo
1 parent e129861 commit 842a70c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EventListener/RequestResponseListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ protected function getRedirectUrl(Request $request, $platform)
287287
$queryParams[$this->deviceView->getSwitchParam()] = $platform;
288288

289289
return rtrim($this->redirectConf[$platform]['host'], '/') .
290-
$request->getPathInfo() . '?' .
290+
$request->getRequestUri() . '?' .
291291
Request::normalizeQueryString(http_build_query($queryParams, null, '&'));
292292
} elseif (self::REDIRECT_WITHOUT_PATH === $routingOption) {
293293
// Make sure to hint at the device override, otherwise infinite loop

0 commit comments

Comments
 (0)