Tag Icons suddenly converting underscores to dashes in slugs, breaking the icon

AI-generated summary

AquaL1te reported a bug where tag icons stopped displaying correctly in topics and tag overview pages, although they continued to work in the sidebar. The issue appeared recently without any user-side configuration changes. gilles initially suggested a conflict with another plugin or component.

However, Lilly identified the root cause: a recent commit in the discourse-tag-icons component changed how tag slugs are handled, specifically converting underscores (_) in tag names to dashes (-). Lilly confirmed that tags containing underscores were failing to display their configured icons because the component now expects slugs with dashes.

When AquaL1te attempted to fix the issue by manually updating the theme component settings to use dashes instead of underscores, the icons appeared in topics but disappeared from the sidebar, indicating an inconsistency in how different parts of the interface handle the slug conversion. AquaL1te expressed frustration with this behavior, calling it unpredictable, and in subsequent posts (6, 9, 10), they noted the issue remained unresolved. After receiving no immediate official fix or workaround that preserved consistency across the UI, AquaL1te considered changing their actual tag names to avoid underscores as a last resort.

I’ve set the following, and that worked really well. But since a few weeks it doesn’t work well anymore.

So these tags should all look like below, and they do, in the sidebar, but not in topics.

So as you can see, it works well in the sidebar, but then when I check topics and the tag overview.

Not all tags get the >> icon.

How can I fix this or troubleshoot this better?

There are more tag icons that are missing, but are configured with one in the theme component and it worked fine in the past.

I’m using the latest Discourse release (2026.5.0-latest.1 ( 4f17eef310 ) and the latest version of this theme component.

It works on my end, so I think there’s a conflict with another component or plugin. Try disabling the components to see which one is causing the conflict.

Do you have a URL to your forum? Maybe I can compare some things. Maybe the amount of tags or something like that triggers it. Because 95% of my tags work fine. I can try disabling components, but I need more time for that.

without installing this component and testing, i’m going to just guess that it is the _ underscore in the tag names. looks like all the tags that have underscores are not showing their icons.

Screenshot 2026-05-20 at 2.29.00 AM

i’m thinking this commit reconfigured your tag slugs that have underscores _ to dashes -

https://github.com/discourse/discourse-tag-icons/commit/46ee338ae4fb7b316e25501744e779f5f96c48e9

edit: testing now and indeed this is the case - if you change the tag slugs in this component from underscore to dash (don’t change the tag names themselves), it should work again.

1 Like

That’s a strange commit, why would a component need to change that behavior? That makes things unpredictable. When I change strategic_access to strategic-access in the theme component it works in topics, but then breaks in the sidepanel.

1 Like

This issue is still present, is there a solution or temporary workaround for this? Or just sit back and wait for the fix? Changing the labels is not really something I want to do.

Anyone? :face_with_peeking_eye: I just would like to get this functionality back.

1 Like

I guess I just have to change my tags to make things work again. :melting_face: