Categories in two different parent with same url-key.

First category in the list is saving fine when we update anything in that. But when I am enabling

Anchor => Yes

In the second category with same url-key is not saving and showing an error: URL key for specified store already exists. If we any other data in the same category then there is no issue.

How can I fix the issue ?


Check url_rewrite table with same category Id and remove row.

then you can generate url rewrite again while run indexer.

  • No, I have 2 same categories but with different id or different parent. – Vinod Kumar Clix Oct 25 '19 at 8:05
  • how can I set anchor using database? – Vinod Kumar Clix Oct 25 '19 at 8:13
  • you can change url key for category because same url key can not be used. – Ronak Chauhan Oct 25 '19 at 8:14
  • I agree but I think it can be same if the category have different parent. – Vinod Kumar Clix Oct 25 '19 at 10:40

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.