Skip to content

Commit 2153a1d

Browse files
committed
MAGETWO-96663: UrlRewrite removes query string from url, if url has trailing slash
1 parent 16b6a0c commit 2153a1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/UrlRewrite/Controller/Router.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function __construct(
7777
public function match(RequestInterface $request)
7878
{
7979
$rewrite = $this->getRewrite(
80-
$this->getNormalisedRequestPath($request),
80+
$this->getNormalizedRequestPath($request),
8181
$this->storeManager->getStore()->getId()
8282
);
8383

@@ -160,7 +160,7 @@ protected function getRewrite($requestPath, $storeId)
160160
* @param RequestInterface|HttpRequest $request
161161
* @return string
162162
*/
163-
private function getNormalisedRequestPath(RequestInterface $request)
163+
private function getNormalizedRequestPath(RequestInterface $request): string
164164
{
165165
$path = $request->getPathInfo();
166166
/**

0 commit comments

Comments
 (0)