# Hashtag linked categories do not show up properly in the composer

**URL:** https://meta.discourse.org/t/hashtag-linked-categories-do-not-show-up-properly-in-the-composer/41004
**Category:** Bug
**Created:** [March 14, 2016, 11:44am UTC](https://meta.discourse.org/t/hashtag-linked-categories-do-not-show-up-properly-in-the-composer/41004 "2016-03-14T11:44:47Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![GaurangTandon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gaurangtandon/32/52384_2.png) [@GaurangTandon](https://meta.discourse.org/u/GaurangTandon)
#### Post date: [March 14, 2016, 11:44am UTC](https://meta.discourse.org/t/hashtag-linked-categories-do-not-show-up-properly-in-the-composer/41004/1 "2016-03-14T11:44:48Z")

</div>

```plaintext
 #javascript

JS - 1. Getting Started ...
 #javascript:getting-started-v2 

JS - 2. Code your own adventure
 #javascript:javascript-beginner-en-x9DnD 

JS - 3. Intro to Functions
 #javascript:javascript-beginner-en-6LzGd 

JS - 4. RPS
 #javascript:javascript-beginner-en-Bthev-mskY8

```

(works only in the codecademy site, but you might get the idea)

In the composer, not all of these links look live. After you submit the post they appear fine. If you go back into the composer they will not look live again.

The ones that aren’t showing as live have this class (in the composer):

```plaintext
class="hashtag hashtag-tested tag-hashtag-tested"

```

The ones that do show live have:

```plaintext
class="hashtag"

```

This is an image demo:

Note that only the first two are showing live (clickable). But when you submit the post, they all appear live.

This is the relevant [JavaScript](https://discuss.codecademy.com/c/javascript) category over those forums, if it’s needed.

* * *

Credits to @AlbionsRefuge for the initial draft 🙂

---

<div class="post-metadata">

### Author: ![GaurangTandon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gaurangtandon/32/52384_2.png) [@GaurangTandon](https://meta.discourse.org/u/GaurangTandon)
#### Post date: [March 19, 2016, 4:31am UTC](https://meta.discourse.org/t/hashtag-linked-categories-do-not-show-up-properly-in-the-composer/41004/2 "2016-03-19T04:31:58Z")

</div>

I got the relevant files after some manual digging. They are these three:

> <https://github.com/discourse/discourse/blob/fb6bd10d4c8002659a8775e6d90c845ae1d92f58/app/assets/javascripts/discourse/dialects/category_hashtag_dialect.js>

> <https://github.com/discourse/discourse/blob/350f1685e52a72d4edeb12c38e292d7e77df168b/app/assets/javascripts/discourse/lib/category-hashtags.js.es6>

The following file adds the `"hashtag-tested"` class:

> <https://github.com/discourse/discourse/blob/c2c1aea381833c167243be2ee3bb70749b08b528/app/assets/javascripts/discourse/lib/link-category-hashtags.js.es6>

Now, it should be probably easy to find the bug.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [March 19, 2016, 4:42am UTC](https://meta.discourse.org/t/hashtag-linked-categories-do-not-show-up-properly-in-the-composer/41004/3 "2016-03-19T04:42:29Z")

</div>

I’ll have a look next week.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [March 28, 2016, 3:17am UTC](https://meta.discourse.org/t/hashtag-linked-categories-do-not-show-up-properly-in-the-composer/41004/4 "2016-03-28T03:17:41Z")

</div>

Thanks for reporting @GaurangTandon 🙂 Turns out category slugs are case sensitive but my query wasn’t.

Fixed in  
[https://github.com/discourse/discourse/commit/6d64b6d39f864947ea1fa52985dc669cd324c481](https://github.com/discourse/discourse/commit/6d64b6d39f864947ea1fa52985dc669cd324c481)

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [March 28, 2016, 3:17am UTC](https://meta.discourse.org/t/hashtag-linked-categories-do-not-show-up-properly-in-the-composer/41004/5 "2016-03-28T03:17:49Z")

</div>


