Skip to content

Commit 2d776b1

Browse files
author
Oleksii Korshenko
authored
MAGETWO-70728: Generating target store post data with the right uenc #10243
2 parents ec086d9 + f9d415e commit 2d776b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/UrlRewrite/Block/Plugin/Store/Switcher/SetRedirectUrl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function beforeGetTargetStorePostData(
6464
]);
6565
if ($urlRewrite) {
6666
$data[ActionInterface::PARAM_NAME_URL_ENCODED] = $this->urlHelper->getEncodedUrl(
67-
$this->trimSlashInPath($this->urlBuilder->getUrl($urlRewrite->getRequestPath()))
67+
$this->trimSlashInPath($this->urlBuilder->getUrl($urlRewrite->getRequestPath(), ['_scope' => $store]))
6868
);
6969
}
7070
return [$store, $data];

0 commit comments

Comments
 (0)