I have an issue with URL path of child categories. I have changed URL key of the category , but still child category URL path with old URL key of the parent category.

On the category page, i am displaying child categories of the current category.

For example, i have Car is parent category. Previous URL key was car after I have changed it to car-type but still child category i.e www.example.com/car/suv.html

It should be www.example.com/car-type/suv.html

I am getting url by $category->getUrl()

  • I have faced same issue. Do you have got any solution. Please share the solution ? Mar 16, 2021 at 4:21

1 Answer 1


To resolve url issue, follow the URL: https://github.com/olegkoval/magento2-regenerate_url_rewrites.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.