-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Issue: needs updateAdditional information is require, waiting for responseAdditional information is require, waiting for responseReported on 2.4.5-p1Indicates original Magento version for the Issue report.Indicates original Magento version for the Issue report.
Description
Preconditions and environment
- Verified on Magento 2.4.5-p1 with it's DEMO data
Steps to reproduce
- Use Magento 2.4.5-p1 with the official DEMO data
- Navigate to admin panel
- Open product with ID=2024
- Add the product to the "DE" website. Check url_rewrite, with proper knowledge on place you will understand that they are correct.
- Switch the scope to "DE View", set the URL Key "url-key-in-de-store-view", unset the "Create Permanent Redirect for old URL" checkbox (in order to keep the data simpler) and save the product. Again you should understand that the data for that product in url_rewrites table is correct at this time.
- Now switch back to Global scope for the product, remove the product's categories leaving only the "Default Category" and save the product. Now the url_rewrites table will hold the following data:
If you know the algorithms you will understand that the rows marked with X on the image above should not be existing too as the product at that time is not in these categories anymore.
If the categories were removed from the "DE View" store view you would not observe the issue as it will not happen.
Expected result
Only two records to exists in the url_rewrite table for "entity_type = "product" and entity_id = 2024" as the product in not in ANY categories, only the root category, so one URL without category should exists per each store view the product is added in.
Actual result
The url_rewrite table hold obsolete URLs which were used for categories the product was previously added in for the store "DE View".
Additional information
No response
Release note
Fixes issue where product save does not update URL rewrites for all store views in Magento 2.4.5 if URL Key is preset on store view scope different from the saved one from the admin panel.
Triage and priority
- 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”.
Metadata
Metadata
Assignees
Labels
Issue: needs updateAdditional information is require, waiting for responseAdditional information is require, waiting for responseReported on 2.4.5-p1Indicates original Magento version for the Issue report.Indicates original Magento version for the Issue report.