Skip to content

Commit 7fa17f3

Browse files
author
Oleksii Korshenko
authored
🔃 [EngCom] Public Pull Requests - 2.1-develop
Accepted Public Pull Requests: - #13489: [Backport 2.1] #9247 fixed layout handle for cms page (by @simpleadm)
2 parents 918dd05 + cb9053e commit 7fa17f3

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)