olegkoval / magento2-regenerate_url_rewrites

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

Specifying --category-id uses wrong entity #122

Closed codedge closed 4 years ago

codedge commented 4 years ago

When specifying --category-id=123 only it seems to still use product as entity_type. Only when I explicitly set --entity-type=category it runs correctly.

Does not work php bin/magento ok:urlrewrites:regenerate --category-id=244 // Does nothing

Works php bin/magento ok:urlrewrites:regenerate --entity-type=category --category-id=244 // Works, regenerate for category 244

I think when only specifying --category-id it is clear that the entity category should be used.

olegkoval commented 4 years ago

Hi @codedge

Added this feature in version 1.5.2. Please update extension.