It seems that subcategory titles and slugs only have to be unique within their parent category.
It is possible for subcategories in different categories to have the same slug (and title)
Is this a good idea? Is there a separate categoryID that we don’t see anywhere that is used as a key field?
I can understand that it is useful to have the same title for a subcategory in different places (for example many categories might have a “Help” category, but shouldn’t the slug at least be unique (perhaps simply by automatically adding a numeric suffix if the slug derived from the name turns out not to be unique)
It causes a problem in the Category Icons Component where the slug is assumed to be available as a unique key to the category.
It has previously caused a problem in this bug
Is this actually a bug? Or are there good reasons to allow subcategories to have the same slugs?