-
-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue of url_key and url rewrites regeneration based on product…
… name value.
- Loading branch information
Showing
3 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@olegkoval Hi, this line is causing me an issue with change existing url_key on product and generate wrong rewrite.
I have product with url_key = my-product-key-1 ... and product name = My Product Name ... when I run regenerate current url_key is nulled and then sent to url generator (\Magento\CatalogUrlRewrite\Model\ProductUrlPathGenerator::prepareProductUrlKey) .. so new url key on my product is changed to my-product-name instead of keep same .. How I fixed that? I've only moved $entity->setUrlKey(null) to next line and leave only $entity there ... As I see it was before.