magento2-regenerate-catalog-urls
magento2-regenerate-catalog-urls copied to clipboard
[FEATURE REQUEST] Allow ALL storeviews to generate a URL when triggered from product grid.
If you select all store views on the product grid only the urls for storeviews that dont have an overwritten value get generated. Imo it should be that all storeviews should regenerate in this scenario.
Replacing:
$stores = !is_null($storeId)
? [$this->storeManager->getStore($storeId)]
: $this->storeManager->getStores(false);
With:
$stores = !is_null($storeId) && $storeId !== 0
? [$this->storeManager->getStore($storeId)]
: $this->storeManager->getStores(false);
Should do the trick.