Skip to content

Commit af352eb

Browse files
author
Michail Slabko
committed
MAGETWO-43822: Incorrect Request Path generated for child category if Edit URL Rewrites from Category Page
1 parent b17b105 commit af352eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/code/Magento/CatalogUrlRewrite/Observer/CategoryUrlPathAutogeneratorObserver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ protected function isGlobalScope($storeId)
105105
*/
106106
protected function updateUrlPathForCategory(Category $category)
107107
{
108+
$category->unsUrlPath();
108109
$category->setUrlPath($this->categoryUrlPathGenerator->getUrlPath($category));
109110
$category->getResource()->saveAttribute($category, 'url_path');
110111
}

0 commit comments

Comments
 (0)