Closed
Description
Preconditions (*)
- Magento 2.4.0 (Enterprise Edition)
- PHP 7.4
Steps to reproduce (*)
- Create two websites with a store for each website (website IDs: 1 and 2, store IDs: 1 and 2)
- Create a product with URL Key "test" (product ID: 1)
- Assign it to both websites
- Observe two URL Rewrites created for both stores
- store 1, "test -> catalog/product/view/id/1",
- store 2, "test -> catalog/product/view/id/1"
- Un-assign the product from website 1, change URL Key to "test2" with "Create redirect" checked, hit Save
- Observe three URL Rewrites:
- store 1, "test -> catalog/product/view/id/1",
- store 2, "test -> test2",
- store 2, "test2 -> catalog/product/view/id/1"
- Attempt to create new product assigned to website 1 with URL Key "test"
Expected result (*)
- In step 6 there should only two URL Rewrites remain for store 2 as the product is unassigned from website 1
- Should allow to save new product in step 7 with the initial URL Key "test" (new product ID: 2)
- Three URL Rewrites should exist after save:
- store 1, "test -> catalog/product/view/id/2",
- store 2, "test -> test2",
- store 2, "test2 -> catalog/product/view/id/1"
Actual result (*)
- Error is thrown in step 7 "URL key for specified store already exists."
- The error message points to the conflicting URL Rewrite with store 2 although the product is assigned only to website 1
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.