Skip to content

Commit 5fb0e27

Browse files
committed
ACP2E-2964: [Cloud] URL update only for store_id=0
1 parent e6fc0ca commit 5fb0e27

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/CatalogUrlRewrite/Model/Category/Plugin/Category

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function afterChangeParent(
7474
) {
7575
$categoryStoreId = $category->getStoreId();
7676
foreach ($category->getStoreIds() as $storeId) {
77-
$category->setStoreId($storeId);
77+
$category->setStoreId($categoryStoreId == $storeId ? $storeId : $categoryStoreId);
7878
$this->removeObsoleteUrlPathEntries($category);
7979
$this->updateCategoryUrlKeyForStore($category);
8080
$category->unsUrlPath();

0 commit comments

Comments
 (0)