ACSD-68664: Scheduled update preview breaks when attempting to preview content for stores with custom…
Scheduled update preview breaks when attempting to preview content for stores with custom domains. Quality patch ACSD-68664 for magento/module-staging applies to Magento Open Source and Adobe Commerce 2.4.6 to 2.4.8-p5.
- Categories
- Content
- Components
- magento/module-staging
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.77
Issue
Scheduled update preview breaks when attempting to preview content for stores with custom domains.
Steps to reproduce
1. Create a second website, store, and store view. 1. Assign a different domain to each website. 1. Go to Content > Blocks and create a new content block. 1. Set the block scope to the newly created website only. 1. Click Edit with Page Builder to edit the block. 1. Add a Row component. 1. Add an Elements > HTML Code component inside the row. 1. Paste the following code into the HTML Code block: <nav class=navigation-block> <div class=primary-nav> <div class=primary-nav-link> <a href=/ class=primary-nav-item>Home</a> </div> </div> </nav> 1. Save the content block and exit the editor. 1. Add the newly created block to the Home page: 1. Go to Content > Pages. 1. Select the Home Page title for editing. 1. Expand Content and click Edit with Page Builder. 1. Add a Row component. 1. Go to Add Content > Block to add it inside the row. 1. Select the previously created content block. 1. Save the Home page. 1. Create a new scheduled update for the Home page. 1. Preview the scheduled update. 1. Click the Home link in the custom navigation bar.
Adobe's page lists 2.4.6 - 2.4.8-p3 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.
Adobe scheduled the permanent fix for 2.4.9.
Install
Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply ACSD-68664. On Cloud, add ACSD-68664 under stage.build.QUALITY_PATCHES in .magento.env.yaml.
For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACSD-68664/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.
Patch files and compatible versions
magento/magento2-ee-base >=2.4.6 <2.4.9
- Magento Open Source
- —
- Adobe Commerce
- 2.4.8-p5, 2.4.8-p4, 2.4.8-p3, 2.4.8-p2, 2.4.8-p1, 2.4.8, 2.4.7-p10, 2.4.7-p9, 2.4.7-p8, 2.4.7-p7, 2.4.7-p6, 2.4.7-p5, 2.4.7-p4, 2.4.7-p3, 2.4.7-p2, 2.4.7-p1, 2.4.7, 2.4.6-p15, 2.4.6-p14, 2.4.6-p13, 2.4.6-p12, 2.4.6-p11, 2.4.6-p10, 2.4.6-p9, 2.4.6-p8, 2.4.6-p7, 2.4.6-p6, 2.4.6-p5, 2.4.6-p4, 2.4.6-p3, 2.4.6-p2, 2.4.6-p1, 2.4.6
- vendor/magento/module-staging/Block/Adminhtml/Update/Preview.php
- vendor/magento/module-staging/Plugin/Csp/Model/CspRendererPlugin.php (added)
- vendor/magento/module-staging/Plugin/Framework/App/Response/HeaderProvider/XFrameOptionsPlugin.php (added)
- vendor/magento/module-staging/etc/frontend/di.xml
- vendor/magento/module-staging/etc/module.xml
- vendor/magento/module-staging/view/adminhtml/web/js/preview/preview.js
