# When in a category, default to "none" rather than "all" subcategories

**URL:** https://meta.discourse.org/t/when-in-a-category-default-to-none-rather-than-all-subcategories/26173
**Category:** Support
**Created:** [March 10, 2015, 4:40pm UTC](https://meta.discourse.org/t/when-in-a-category-default-to-none-rather-than-all-subcategories/26173 "2015-03-10T16:40:49Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![Cataldo\_Cigliola](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cataldo_cigliola/32/120763_2.png) [@Cataldo\_Cigliola](https://meta.discourse.org/u/Cataldo_Cigliola)
#### Post date: [August 13, 2017, 11:41pm UTC](https://meta.discourse.org/t/when-in-a-category-default-to-none-rather-than-all-subcategories/26173/7 "2017-08-13T23:41:41Z")

</div>

Hi

I am having some issues with this… I added the js to my head section but apparently it breaks if you click on the logo to get back to the home page.

Step to reproduce:

- go to the discourse website
- select a category with subcategories → it works, defaults to “none”
- click on the discourse logo (upper left) and go back to the home
- select a category with subcategories → it doesn’t works, defaults to “all”

Any idea why ?

---

_[View the full topic](https://meta.discourse.org/t/when-in-a-category-default-to-none-rather-than-all-subcategories/26173)._
