ACSD-68664: Scheduled update preview has errors on custom store domains
The ACSD-68664 patch fixes the issue where the scheduled update preview breaks when attempting to preview content for stores with custom domains. This patch is available when the Quality Patches Tool (QPT) 1.1.77 is installed. The patch ID is ACSD-68664. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.9.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.6-p10
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.6 - 2.4.8-p3
magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
Scheduled update preview breaks when attempting to preview content for stores with custom domains.
Steps to reproduce:
- Create a second website, store, and store view.
- Assign a different domain to each website.
- Go to Content > Blocks and create a new content block.
- Set the block scope to the newly created website only.
- Click Edit with Page Builder to edit the block.
- Add a Row component.
- Add an Elements > HTML Code component inside the row.
- 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>
-
Save the content block and exit the editor.
-
Add the newly created block to the Home page:
- Go to Content > Pages.
- Select the Home Page title for editing.
- Expand Content and click Edit with Page Builder.
- Add a Row component.
- Go to Add Content > Block to add it inside the row.
- Select the previously created content block.
- Save the Home page.
-
Create a new scheduled update for the Home page.
-
Preview the scheduled update.
-
Click the Home link in the custom navigation bar.
Expected results:
Stores with custom domains can be previewed correctly, and navigation within the preview iframe works as expected without any CORS errors in the browser console.
Actual results:
The scheduled update preview fails when previewing content for stores with custom domains. CORS errors are displayed in the browser console due to a redirect to a different domain. This occurs when the content block is created for a non-default website with a different domain.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.