Skip to content

Commit b82bdda

Browse files
MC-18561: After changing store view the cms page is not redirecting correctly
1 parent b287f41 commit b82bdda

File tree

1 file changed

+1
-2
lines changed
  • app/code/Magento/CmsUrlRewrite/Plugin/Cms/Model/Store

1 file changed

+1
-2
lines changed

app/code/Magento/CmsUrlRewrite/Plugin/Cms/Model/Store/View.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,8 @@ public function __construct(
6868
*/
6969
public function aroundSave(ResourceStore $object, \Closure $proceed, Store $store)
7070
{
71-
$newStore = $store->isObjectNew() || $store->dataHasChangedFor('group_id');
7271
$result = $proceed($store);
73-
if ($newStore) {
72+
if ($store->isObjectNew() || $store->dataHasChangedFor('group_id')) {
7473
$this->urlPersist->replace(
7574
$this->generateCmsPagesUrls((int)$store->getId())
7675
);

0 commit comments

Comments
 (0)