ACP2E-4698: Page Builder Text inline editing saves absolute media URLs instead of the portable directive
The ACP2E-4698 patch fixes an issue where Page Builder Text inline editing can save absolute media image URLs after an image is edited again, instead of keeping the portable media url=... directive. This patch is available when the Quality Patches Tool (QPT) 1.1.82 is installed. The patch ID is ACP2E-4698. 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.7-p9
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.7-p9 – 2.4.7-p10, 2.4.8-p4 – 2.4.8-p5
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
Page Builder Text inline editing saves absolute media image URLs after editing an image again, instead of keeping the portable media url=... directive.
Prerequisites:
Page Builder is enabled.
Steps to reproduce:
-
On the Admin sidebar, go to Content > Elements > Pages and open a CMS page in edit mode.
-
Expand the Content section and edit a Text content type.
- In the editor toolbar, click the Insert Image icon.
- Select an image from the Media Gallery.
- Save the CMS page.
- Inspect the stored HTML for the edited page:
The image src attribute uses amedia url=...directive. This is the correct behavior.
-
Edit the same CMS page again.
- In the Content section, edit the same Text content type.
- Select the existing image in the inline editor and reopen the Insert/edit image dialog.
- Change the image width or height under Dimensions, click Save, and then save the CMS page.
- Inspect the stored HTML again:
The image src attribute is replaced with a fully qualified Admin media URL, such ashttps://example.com/media/.renditions/wysiwyg/.../image.png. The media directive is lost, and the URL becomes static.
Expected results:
The stored HTML should retain the portable media url=... directive in the image src attribute after the image is edited and the CMS page is saved again.
Actual results:
After the image is edited in Page Builder Text inline editing and the CMS page is saved again, the stored HTML replaces the media url=... directive with a hard-coded absolute URL.
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