Skip to content

Commit 2a8979a

Browse files
committed
ACP2E-440: Redirect for CMS page under hierarchy
1 parent 96faea7 commit 2a8979a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/CmsUrlRewrite/Observer/ProcessUrlRewriteSavingObserver.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ public function execute(EventObserver $observer)
4444
/** @var $cmsPage \Magento\Cms\Model\Page */
4545
$cmsPage = $observer->getEvent()->getObject();
4646

47-
if ($cmsPage->dataHasChangedFor('identifier') || $cmsPage->dataHasChangedFor('store_id')) {
47+
if ($cmsPage->dataHasChangedFor('identifier')
48+
|| $cmsPage->dataHasChangedFor('store_id')
49+
|| $cmsPage->getData('rewrites_update_force')
50+
) {
4851
$urls = $this->cmsPageUrlRewriteGenerator->generate($cmsPage);
4952

5053
$this->urlPersist->deleteByData([

0 commit comments

Comments
 (0)