Skip to content

Commit dc647e1

Browse files
committed
MAGETWO-87443: [Backport 2.1] #9247 fixed layout handle for cms page #13489
- Merge Pull Request #13489 from simpleadm/magento2:backport/fix-cms-page-layout-handles - Merged commits: 1. 0d1be23
2 parents 689f414 + 0d1be23 commit dc647e1

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)