Skip to content

Commit 8375d08

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

File tree

2 files changed

+3
-1
lines changed
  • app/code/Magento/CmsUrlRewrite/Plugin/Cms/Model/Store
  • dev/tests/integration/testsuite/Magento/CmsUrlRewrite/Plugin/Cms/Model/Store

2 files changed

+3
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ public function __construct(
6262
}
6363

6464
/**
65+
* Replace cms page url rewrites on store view save
66+
*
6567
* @param ResourceStore $object
6668
* @param \Closure $proceed
6769
* @param AbstractModel $store

dev/tests/integration/testsuite/Magento/CmsUrlRewrite/Plugin/Cms/Model/Store/ViewTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ protected function setUp()
5757
$this->urlFinder = $this->objectManager->create(UrlFinderInterface::class);
5858
$this->storeFactory = $this->objectManager->create(StoreFactory::class);
5959
$this->websiteRepository = $this->objectManager->get(WebsiteRepositoryInterface::class);
60-
$this->storeCode = 'test_' . mt_rand();
60+
$this->storeCode = 'test_' . random_int(0, 999);
6161
}
6262

6363
/**

0 commit comments

Comments
 (0)