Skip to content

Commit a7c3560

Browse files
committed
MAGETWO-90332: URL rewrite for store is not created for child if parent category has non-default URL key on store
1 parent d653bdd commit a7c3560

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

app/code/Magento/CatalogUrlRewrite/Model/Category/Plugin/Category/UpdateUrlPath.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ public function afterSave(
7777
if ($category->isObjectNew()
7878
&& !$category->isInRootCategoryList()
7979
&& !empty($parentCategoryId)) {
80-
8180
foreach ($category->getStoreIds() as $storeId) {
8281
if (!$this->isGlobalScope((int)$storeId)
8382
&& $this->storeViewService->doesEntityHaveOverriddenUrlPathForStore(
@@ -91,7 +90,6 @@ public function afterSave(
9190
$this->urlPersist->replace($this->categoryUrlRewriteGenerator->generate($category));
9291
}
9392
}
94-
9593
}
9694

9795
return $result;

0 commit comments

Comments
 (0)