I am developing an online store using Magento 2. I am using the Sm mega menu. In their nav section in mobile view, they show categories. So I want to create home categories and show them in nav bar hover and redirect it to home page.

  • Your question and description is totally different. Dec 8, 2017 at 5:10
  • I want to redirect home in catergories redirect with .html example i want to redirect home but it redirect with .html then page didnt load properly
    – RUC...
    Dec 8, 2017 at 5:13
  • 1
    Possible duplicate of Magento 2: Product URL Suffix Apr 17, 2019 at 9:12

1 Answer 1


Go to Stores > Configuration > Catalog > Catalog > Search Engine Optimization > Category URL Suffix to remove .html you can change configuration and save it.

  • But i changed but say "Unique constraint violation found "
    – RUC...
    Dec 8, 2017 at 5:33
  • That means you have used same url rewrites for two entities. Dec 8, 2017 at 5:35
  • Any idea how can i find that link
    – RUC...
    Dec 8, 2017 at 5:35
  • I think you can look into url_rewrite table for it. Dec 8, 2017 at 5:37
  • Did you create a category with name home? Dec 8, 2017 at 5:37

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.