Closed
Description
Preconditions (*)
- magento 2.3.4
- create cms-specificlayout file in your module/theme for home
Steps to reproduce (*)
- Add a cms_page_view_selectable_home_somechanges.xml as described in https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/layouts/xml-manage.html
- Edit the home page in the backend to use the specifc Layout (CMS->Pages->home>edit->design->select "somechanges" ..)
- Save.
- Clear layout-cache
- Refresh home page
Expected result (*)
- Specific layout changes from cms_page_view_selectable_home_somechanges.xml should be applied
Actual result (*)
- Changes have no effect
Workaraund:
Place a second file cms_index_index_selectable_home_somechanges.xml in your theme/module and the changes are applied.
Backgraund:
The DefaultLayoutHandle differs on the homepage from regular CMS_Page_View, since the full action name is cms_index_index
\Magento\Framework\View\Result\Page::addPageLayoutHandles
(\Magento\Framework\View\Result\Layout::getDefaultLayoutHandle)
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.4-develop branchGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentIndicates original Magento version for the Issue report.The issue has been reproduced on latest 2.4-develop branch