# Banner doesn't show when 'remove tag hyphen' is enabled

**URL:** https://meta.discourse.org/t/banner-doesnt-show-when-remove-tag-hyphen-is-enabled/270625
**Category:** Bug
**Tags:** tag-banners
**Created:** [July 21, 2022, 3:08pm UTC](https://meta.discourse.org/t/banner-doesnt-show-when-remove-tag-hyphen-is-enabled/270625 "2022-07-21T15:08:55Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)
#### Post date: [July 21, 2022, 3:08pm UTC](https://meta.discourse.org/t/banner-doesnt-show-when-remove-tag-hyphen-is-enabled/270625/1 "2022-07-21T15:08:55Z")

</div>

Saw this on two instances: the banner doesn’t show when a tag uses hyphens and _remove tag hyphen_ is enabled.

---

<div class="post-metadata">

### Author: ![AquaL1te](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aqual1te/32/201966_2.png) [@AquaL1te](https://meta.discourse.org/u/AquaL1te)
#### Post date: [July 23, 2022, 10:50am UTC](https://meta.discourse.org/t/banner-doesnt-show-when-remove-tag-hyphen-is-enabled/270625/2 "2022-07-23T10:50:36Z")

</div>

The remove tag hyphen is nice, but can you also add an option for underscores?

This probably does the trick:  
[https://github.com/kees-closed/discourse-tag-banners/commit/e924faeb8d6a09a8f4ed436ab5a3f19c00731649](https://github.com/kees-closed/discourse-tag-banners/commit/e924faeb8d6a09a8f4ed436ab5a3f19c00731649)

But can’t test it out yet, because the same bug is present as with the hyphen option. When enabled, the tag banner disappears.

---

<div class="post-metadata">

### Author: ![davidkingham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidkingham/32/119528_2.png) [@davidkingham](https://meta.discourse.org/u/davidkingham)
#### Post date: [July 24, 2022, 4:04pm UTC](https://meta.discourse.org/t/banner-doesnt-show-when-remove-tag-hyphen-is-enabled/270625/3 "2022-07-24T16:04:25Z")

</div>

Is anyone else having an issue with `remove tag hyphen`? For me the tag banner disappears when I turn this option on.

---

<div class="post-metadata">

### Author: ![AquaL1te](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aqual1te/32/201966_2.png) [@AquaL1te](https://meta.discourse.org/u/AquaL1te)
#### Post date: [July 25, 2022, 8:41am UTC](https://meta.discourse.org/t/banner-doesnt-show-when-remove-tag-hyphen-is-enabled/270625/4 "2022-07-25T08:41:09Z")

</div>

Once the plugin works again, I’ll submit a PR for the underscore replacement. But I’m also considering to add an option to capitalize the first letter of a tag. So e.g. #open\_source would become “Open source” in the banner. I could also add another option to capitalize every word, e.g. “Open Source”. But before doing that I need a working base to be able to test these changes. Hopefully it can be fixed soon.

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [August 10, 2022, 3:19pm UTC](https://meta.discourse.org/t/banner-doesnt-show-when-remove-tag-hyphen-is-enabled/270625/5 "2022-08-10T15:19:01Z")

</div>

Thanks for your patience everyone! I’ve fixed the issue with hyphen removal, and also added the option to remove underscores.

[https://github.com/discourse/discourse-tag-banners/commit/dea20a2a2d59520f7a5b1062e9e699291e6ac683](https://github.com/discourse/discourse-tag-banners/commit/dea20a2a2d59520f7a5b1062e9e699291e6ac683)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [July 5, 2023, 10:22am UTC](https://meta.discourse.org/t/banner-doesnt-show-when-remove-tag-hyphen-is-enabled/270625/6 "2023-07-05T10:22:36Z")

</div>


