Module Catalog URL Rewrite: fix issue with product URL Rewrites re-generation after changing product URL Key for product with existing url_path attribute value #18566
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hiving saved product attribute
URL Path
value causes broken Product URL Rewrites regeneration after changing productURL key
.Description (*)
If there is a product with set
URL Path
attribute value, product URL Rewrites can't be re-generated clearly after changing productURL Key
from Admin panel.For example, after migrating from Magento 1, there are a lot of values for product attribute
URL Path
.Fixed Issues (if relevant)
#5929: Saving Product does not update URL rewrite in Magento 2.1.0.
Causes Issues
#18532: Module Catalog: product "Save and Duplicate" causes getting infinite loop.
Manual testing scenarios (*)
URL Path
value for any product.1.1. For example, execute following SQL query:
URL Key
field value.URL Key
.Expected result
Product is available by the new
URL Key
.Actual result
Product is not available by the new
URL Key
, but available by the previous one.Contribution checklist (*)