# Escaping the "#" character in search

**URL:** <https://meta.discourse.org/t/escaping-the-character-in-search/67249>\
**Category:** Bug\
**Created:** [August 1, 2017, 2:10pm UTC](https://meta.discourse.org/t/escaping-the-character-in-search/67249 "2017-08-01T14:10:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [August 1, 2017, 2:20pm UTC](https://meta.discourse.org/t/escaping-the-character-in-search/67249/2 "2017-08-01T14:20:28Z")

</div>

You just hit 3 bugs-in-one … you get the 🎃 ♨

Your actual bug:

`#4` is treated as a category filter and by adding it search is assuming you are trying to find all topics in the category id 4, or something along those lines. `#` should not allow for category id, and always just pass through misses.

Two side bugs I discovered while answering this:

- Our prettifier is mucking big time with search results. “pozidrive” as a search term returns zero results, most likely cause of the quotes. I have to fix that.

- Our # autocomplete is all messed up in composer, #2space and the autocomplete is still open. It should always unconditionally close on space.

---

_[View the full topic](https://meta.discourse.org/t/escaping-the-character-in-search/67249)._
