1

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()

1
  • I have faced same issue. Do you have got any solution. Please share the solution ? – Kirti Nariya Mar 16 at 4:21
0

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, privacy policy and cookie policy

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