Magento 2.4

A category looks like this: https://www.example.com/cat1/cat/cat3.html I want it to look like this: https://www.example.com/cat3.html

So what I want is only the current category, not the full path on the category page.

I did not find a setting for that?


1 Answer 1


Sadly, Magento 2 does not offer an option to "shorten" category URLs.

However, this solution might help you achieve your goal.

Otherwise, in case you don't like working manually using the above solution, there are plenty of third-party extensions out there that does this job. Simply google "Magento 2 short (or unique) category URL", you'll find a bunch of them.

Happy coding!

  • Great, thanks, at least I can stop looking and try an extension...no way for me to do it manually, too many URLs :-). Mar 22 at 8:30

Your Answer

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

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