From 0ee7c9c1adb298b8ae88eb8805b321480d201aac Mon Sep 17 00:00:00 2001 From: Ihor Sviziev Date: Mon, 26 Jun 2017 08:50:41 +0300 Subject: [PATCH] Fix trailing slash used a product & category URL suffix --- app/code/Magento/UrlRewrite/Model/Storage/DbStorage.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/code/Magento/UrlRewrite/Model/Storage/DbStorage.php b/app/code/Magento/UrlRewrite/Model/Storage/DbStorage.php index 28828160900d1..7d77de298a6f9 100644 --- a/app/code/Magento/UrlRewrite/Model/Storage/DbStorage.php +++ b/app/code/Magento/UrlRewrite/Model/Storage/DbStorage.php @@ -108,11 +108,10 @@ protected function doFindOneByData($data) UrlRewrite::REQUEST_PATH => $requestPath, UrlRewrite::TARGET_PATH => $resultFromDb[UrlRewrite::REQUEST_PATH], UrlRewrite::REDIRECT_TYPE => OptionProvider::PERMANENT, - UrlRewrite::REDIRECT_TYPE => OptionProvider::PERMANENT, UrlRewrite::STORE_ID => $resultFromDb[UrlRewrite::STORE_ID], UrlRewrite::DESCRIPTION => null, UrlRewrite::IS_AUTOGENERATED => '0', - UrlRewrite::METADATA => NULL, + UrlRewrite::METADATA => null, ]; } } else {