Describe the bug
The script only generates the URLs of the first level of categories.
Expected behavior
It should generate the URLs of all categories and child categories.
To Reproduce
We have multiple categories and child categories, and we recently translated them to multiples languages. We wanted to use your module to generate the URL keys of the categories in the new store views using the translated name we set in those store views.
Describe the bug The script only generates the URLs of the first level of categories.
Expected behavior It should generate the URLs of all categories and child categories.
To Reproduce We have multiple categories and child categories, and we recently translated them to multiples languages. We wanted to use your module to generate the URL keys of the categories in the new store views using the translated name we set in those store views.
Unfortunately when we run this :
It only regenerate the URL keys of the first level of categories.
Additional context I see in the code (https://github.com/olegkoval/magento2-regenerate_url_rewrites/blob/master/Model/RegenerateCategoryRewrites.php#L257) that you specifically select only top categories, as the products and child categories will be regenerated as well.
But I don't see where the child categories' URLs should then be generated?
My suggestion would be to remove the line https://github.com/olegkoval/magento2-regenerate_url_rewrites/blob/master/Model/RegenerateCategoryRewrites.php#L259 as I don't see it's utility, but maybe I am missing something?