Forums

Bug: Cannot have duplicate category and tag slugs (2 posts)

  1. Isobel
    Member
    Posted 4 months ago #

    When you try to create a category and there is an existing tag with the same slug, 2.7.1 onwards rewrites the category slug to child-slug-parent-slug or adds a digit to the slug. It started with 2.7.1 but updating from earlier versions keeps the existing category slugs even if the tag slug exists; it won't however let you create new ones that duplicate tag slugs.

    e.g. if tag doesn't exist:
    Parent category: Make Money, slug make-money
    Child category: Internet Marketing, slug internet-marketing - which is correct and expected.

    However if tag internet-marketing already exists, child category gets rewritten as internet-marketing-make-money

    My workaround is to create the categories first as I want them, and then the tag slugs using a _ in place of a hyphen for the tags, e.g. category internet-marketing, tag internet_marketing. This however is not acceptable as the standard format for tags uses a hyphen.

  2. lee.jordan
    Member
    Posted 3 weeks ago #

    I'm having the same problem.

    It seems even if you use parent categories ie are building a good structure or taxonomy you still can't have multiple duplicate children, even if the children are from "different parents" and that's a key point here, different parents. It's like saying there's only ever going to be one Tom one Dick and one Harry in the world EVER no more no less. Hardly flexible, when you look at the real world I know multiple Sarah's who've come from different parents and I can tell the difference between them fine :)

Reply

You must log in to post.

About this Topic