ACP2E-4531: CMS hierarchy does not update the hierarchical URL when the child page URL key changes

The ACP2E-4531 patch fixes the issue where changing a CMS page’s URL key didn’t update the page’s hierarchical URL. This patch is available when the Quality Patches Tool (QPT) 1.1.79 is installed. The patch ID is ACP2E-4531. 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.8-p3

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.4 - 2.4.8-p4
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

Changing a CMS page’s URL key does not update the page’s hierarchical URL.

Steps to reproduce:

  1. Create a CMS page (for example, help).
  2. Create a second CMS page (for example, my-account) and set help as its parent in the hierarchy.
  3. Load both pages from the Storefront, and both pages resolve correctly.
  4. Change the my-account page’s URL Key (under Search Engine Optimization) to my-account-2.
  5. Load /my-account-2 and /help/my-account-2 from the Storefront.

Expected results:

When the CMS page URL Key changes, the hierarchy URLs are updated accordingly. /help/my-account-2 resolves to the page, and /my-account no longer resolves (no such URL exists).

Actual results:

/my-account-2 redirects to /my-account, and /help/my-account-2 returns a 404 error. The hierarchical URL is not updated when the child page URL key changes.

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
commerce-operations-help-tools