[PaaS only]{class="badge informative" title="Applies to Adobe Commerce on Cloud projects (Adobe-managed PaaS infrastructure) and on-premises projects only."}

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
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the 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:

  1. Create a second website, store, and store view.
  2. Assign a different domain to each website.
  3. Go to Content > Blocks and create a new content block.
  4. Set the block scope to the newly created website only.
  5. Click Edit with Page Builder to edit the block.
  6. Add a Row component.
  7. Add an Elements > HTML Code component inside the row.
  8. 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.

  2. Add the newly created block to the Home page:

    1. Go to Content > Pages.
    2. Select the Home Page title for editing.
    3. Expand Content and click Edit with Page Builder.
    4. Add a Row component.
    5. Go to Add Content > Block to add it inside the row.
    6. Select the previously created content block.
    7. Save the Home page.
  3. Create a new scheduled update for the Home page.

  4. Preview the scheduled update.

  5. 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:

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3