• We are prefixing $ sign to some tags to associate certain meaning like $FOO but then it is treated same as FOO whereas we want them to be treated as two distinct ones. Looks like slugs for both ends up as “foo” and when we try to add tag $FOO when FOO exists already it is ignored.

    Is there any way we can override this behavior of slugs (say for tags alone) ? Understand that slugs are there for a reason, so is there a way to create a taxonomy that would allow co-existence of both “FOO” and “$FOO” ?

Viewing 1 replies (of 1 total)
  • I would choose a different prefix to $. The dollar sign is an URI reserved character and should be encoded as %24 if used.

    But if you like living on the edge, you may use the “pre_term_slug” filter and prefix the passed in value with the dollar sign. However, this would be a bad idea!

Viewing 1 replies (of 1 total)
  • The topic ‘Slugs creating problem for tags with special characters’ is closed to new replies.