Skip to content

Commit 33db8bd

Browse files
ENGCOM-4177: Remove unwanted condition check #21046
- Merge Pull Request #21046 from dominicfernando/magento2:remove-unwanted-condition-check - Merged commits: 1. 1fde486 2. 10fc55b
2 parents f6876dd + 10fc55b commit 33db8bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Cms/Helper/Page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function getPageUrl($pageId = null)
187187
{
188188
/** @var \Magento\Cms\Model\Page $page */
189189
$page = $this->_pageFactory->create();
190-
if ($pageId !== null && $pageId !== $page->getId()) {
190+
if ($pageId !== null) {
191191
$page->setStoreId($this->_storeManager->getStore()->getId());
192192
$page->load($pageId);
193193
}

0 commit comments

Comments
 (0)