Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Url_Key not regenerated for child categories #166

Open
sebfie opened this issue Jun 6, 2023 · 3 comments
Open

Url_Key not regenerated for child categories #166

sebfie opened this issue Jun 6, 2023 · 3 comments
Assignees
Labels

Comments

@sebfie
Copy link

sebfie commented Jun 6, 2023

Describe the bug
When running bin/magento ok:urlrewrites:regenerate --store-id=6 --category-id=15 --no-reindex

It does not regenerate child categories url_keys but just the parent category (in my case 15)

Expected behavior
It should regenerate url_key for all child categories

To Reproduce
Run bin/magento ok:urlrewrites:regenerate --store-id=6 --category-id=15 --no-reindex

Additional context
Here I do not understand why the level is 2 and not ['gt' => '2']

https://github.com/olegkoval/magento2-regenerate_url_rewrites/blob/master/Model/RegenerateCategoryRewrites.php#LL259C7-L259C7

@pauldonnelly
Copy link

I am having the same issue. It seems only the top level categories are being generated but not the child categories.
I am using the latest version of the module and magento 2.4.6-p2

@Nuranto
Copy link

Nuranto commented Jan 19, 2024

I agree. Also, I think there's a ->setStoreId($storeId) missing in _getCategoriesCollection

@abdel-aouby
Copy link

abdel-aouby commented Feb 2, 2024

the same for url_path it is generated only for the top-level categories
it should also generate it for all children

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants