olegkoval / magento2-regenerate_url_rewrites

Magento 2 extension which add feature of regenerating a url rewrites of products/categories
Academic Free License v3.0
420 stars 117 forks source link

Can't generate URL Rewrite Rules for specific category #137

Open Eddcapone opened 3 years ago

Eddcapone commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

In the documentation it says:

to regenerate Url Rewrites of some specific category then use option category-id (e.g.: category ID is "15"): $> php bin/magento ok:urlrewrites:regenerate --entity-type=category --category-id=15

I tried it, but this did delete all previously existing URL Rewrite Rules and did not create any new ones.

Expected behavior The command should generate URL Rewrites for the category. Instead it deletes all existing rules for the category.