Skip to content

Commit e8301af

Browse files
committed
MAGETWO-96663: UrlRewrite removes query string from url, if url has trailing slash
1 parent 5538f64 commit e8301af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
namespace Magento\UrlRewrite\Controller;
77

8+
use function GuzzleHttp\Psr7\str;
89
use Magento\Framework\App\RequestInterface;
910
use Magento\UrlRewrite\Controller\Adminhtml\Url\Rewrite;
1011
use Magento\UrlRewrite\Model\UrlFinderInterface;
@@ -177,6 +178,6 @@ private function getNormalizedPathInfo(RequestInterface $request): string
177178
$path = rtrim($path, '/');
178179
}
179180

180-
return $path;
181+
return (string)$path;
181182
}
182183
}

0 commit comments

Comments
 (0)