Skip to content

Commit

Permalink
Fix trailing slash used a product URL suffix
Browse files Browse the repository at this point in the history
In reference to issue magento#7040
sitepodmatt authored Oct 16, 2016
1 parent bc9df94 commit 1f9a6ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/UrlRewrite/Controller/Router.php
Original file line number Diff line number Diff line change
@@ -129,7 +129,7 @@ protected function redirect($request, $url, $code)
protected function getRewrite($requestPath, $storeId)
{
return $this->urlFinder->findOneByData([
UrlRewrite::REQUEST_PATH => trim($requestPath, '/'),
UrlRewrite::REQUEST_PATH => ltrim($requestPath, '/'),
UrlRewrite::STORE_ID => $storeId,
]);
}

0 comments on commit 1f9a6ec

Please sign in to comment.