magento2-regenerate-catalog-urls icon indicating copy to clipboard operation
magento2-regenerate-catalog-urls copied to clipboard

[FEATURE REQUEST] Allow ALL storeviews to generate a URL when triggered from product grid.

Open Hexmage opened this issue 1 year ago • 0 comments

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.

Hexmage avatar Jul 25 '24 14:07 Hexmage