We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6fc0ca commit 5fb0e27Copy full SHA for 5fb0e27
app/code/Magento/CatalogUrlRewrite/Model/Category/Plugin/Category/Move.php
@@ -74,7 +74,7 @@ public function afterChangeParent(
74
) {
75
$categoryStoreId = $category->getStoreId();
76
foreach ($category->getStoreIds() as $storeId) {
77
- $category->setStoreId($storeId);
+ $category->setStoreId($categoryStoreId == $storeId ? $storeId : $categoryStoreId);
78
$this->removeObsoleteUrlPathEntries($category);
79
$this->updateCategoryUrlKeyForStore($category);
80
$category->unsUrlPath();
0 commit comments