Skip to content

Commit ce7d6a7

Browse files
author
Oleksii Korshenko
committed
MAGETWO-67492: Fixed layout handle for cms page #9247
- Merge Pull Request #9247 from simpleadm/magento2:fix-cms-page-layout-handles
2 parents e3fc5b7 + f7cd995 commit ce7d6a7

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
@@ -152,7 +152,7 @@ public function prepareResultPage(Action $action, $pageId = null)
152152
$resultPage = $this->resultPageFactory->create();
153153
$this->setLayoutType($inRange, $resultPage);
154154
$resultPage->addHandle('cms_page_view');
155-
$resultPage->addPageLayoutHandles(['id' => $this->_page->getIdentifier()]);
155+
$resultPage->addPageLayoutHandles(['id' => str_replace('/', '_', $this->_page->getIdentifier())]);
156156

157157
$this->_eventManager->dispatch(
158158
'cms_page_render',

0 commit comments

Comments
 (0)