# Tag icon doesn't appear in the hashtag autocomplete

**URL:** https://meta.discourse.org/t/tag-icon-doesnt-appear-in-the-hashtag-autocomplete/354872
**Category:** Support
**Tags:** tag-icons
**Created:** [February 27, 2025, 4:59pm UTC](https://meta.discourse.org/t/tag-icon-doesnt-appear-in-the-hashtag-autocomplete/354872 "2025-02-27T16:59:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [February 27, 2025, 4:59pm UTC](https://meta.discourse.org/t/tag-icon-doesnt-appear-in-the-hashtag-autocomplete/354872/1 "2025-02-27T16:59:44Z")

</div>

![This image shows a dropdown menu with various tag options on a post editing interface in an application. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/8/a/9/8a968577e56007f98ab09b74d0caf0a856ca90fd.png)

This is not a bug in the component per se.

The component relies on the hashtag `slug`:

> <https://github.com/discourse/discourse-tag-icons/blob/main/javascripts/discourse/initializers/tag-icons.js#L88-L96>

But core doesn’t pass the `slug` param in `generateIconHTML` function \[1\]. It doesn’t appear to be a regression, I assume there was no usage until this component.  
[https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/lib/hashtag-autocomplete.js#L130-L137](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/lib/hashtag-autocomplete.js#L130-L137)

Posting here as [suggested](https://github.com/discourse/discourse-tag-icons/pull/14#issuecomment-2686714073) by Penar:

> Might be worth a meta topic, in that case. Not sure how easy/hard it would be to support. Thanks!

* * *

1. With it:
