{"data":{"id":"ACSD-57045","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where URL rewrites cause infinite page looping after \"Website Root\" is unchecked from Hierarchy.","categories":["Content"],"components":["magento/module-versions-cms","magento/module-versions-cms-url-rewrite"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-49/acsd-57045-url-rewrites-cause-infinite-page-looping-after-website-root-unchecked-hierarchy","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-49/acsd-57045-url-rewrites-cause-infinite-page-looping-after-website-root-unchecked-hierarchy.md","blobSha":"50629ed7f14ed5da6cfa7ef8e562d2968b2d9625","description":"URL rewrites cause infinite page looping after Website Root is deselected from Hierarchy.","stepsToReproduce":"1. Create a CMS page named Test-Parent. 1. Create a page named Test-Child, and in the Hierarchy section, select Website Root > Parent and save. 1. Go to Marketing > URL Rewrites. 1. Notice that there are two new rewrites: * Request path to Test-Parent that points to cms/page/view/page_id/ID_NUMBER_FOR_PAGE * Request path to Test-Child that points to cms/page/view/page_id/ID_NUMBER_FOR_PAGE 1. Visit the storefront and add test-child to the URL. You should see the child page. 1. Do the same thing, but add test-parent/test-child/ to the URL and see the same page. 1. Go to Marketing > URL Rewrites and select Add URL Rewrite. Choose the following settings: * Type: Custom * Request path: test-parent/test-child * Target path: test-child * Redirect Type: Permanent (301) 1. Visit the test-parent/test-child path and you should be redirected to test-child. 1. Edit the Child page (Content > Elements > Pages > Pick Child and select Edit). 1. Under the Hierarchy section, keep Test-Parent selected but unselect Website Root and save. 1. Go to Marketing > URL Rewrites and notice that the original test-child to cms/page/view/page_id redirect is missing, and at that point it is substituted by a path that points the test-child to test-parent/test-child. 1. Visit the storefront and try to visit the Test-Child page.","introducedInQpt":"1.1.49","createdFor":["2.4.6-p2"],"documentedRange":"2.4.5 - 2.4.6-p7","scheduledFixRelease":"2.5.0"},"files":[{"package":"magento/magento2-ee-base","constraint":">=2.4.5 <2.4.7","path":"patches/commerce/ACSD-57045_2.4.6-p2.patch","blobSha":"bf6b48d3e3615da3297c1a4493b5fc714fac28b6","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/commerce/ACSD-57045_2.4.6-p2.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-versions-cms/Observer/Backend/CmsPageSaveAfterObserver.php","change":"modified","package":"magento/module-versions-cms"},{"path":"vendor/magento/module-versions-cms/Observer/Backend/CmsPageSaveBeforeObserver.php","change":"modified","package":"magento/module-versions-cms"},{"path":"vendor/magento/module-versions-cms/Plugin/Cms/Model/PageRepositoryPlugin.php","change":"added","package":"magento/module-versions-cms"},{"path":"vendor/magento/module-versions-cms/etc/di.xml","change":"modified","package":"magento/module-versions-cms"},{"path":"vendor/magento/module-versions-cms-url-rewrite/Plugin/Cms/Model/PageRepositoryPlugin.php","change":"modified","package":"magento/module-versions-cms-url-rewrite"}],"packages":["magento/module-versions-cms","magento/module-versions-cms-url-rewrite"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["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","2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":[],"magento-commerce":["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","2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-57045 details"}