# Bug when the category list receives a new subcategory that was just created

**URL:** <https://meta.discourse.org/t/bug-when-the-category-list-receives-a-new-subcategory-that-was-just-created/91919>\
**Category:** UX\
**Created:** [July 9, 2018, 8:55pm UTC](https://meta.discourse.org/t/bug-when-the-category-list-receives-a-new-subcategory-that-was-just-created/91919 "2018-07-09T20:55:01Z")\
**Posts on this page:** 3\
**Page:** 1

## AI-generated summary

[Canapin](/t/-/91919/1) reported a UI issue where creating a new subcategory via AJAX incorrectly displays it in the parent category list. This causes the subcategory to appear among top-level categories and results in a 404 error when clicked, requiring a page reload to fix. [codinghorror](/t/-/91919/2) responded that this does not qualify as a bug according to the category's definition, which requires preventing normal use of Discourse. [Canapin](/t/-/91919/3) acknowledged the distinction, noting they initially believed the 404 error would meet the criteria.

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [July 9, 2018, 8:55pm UTC](https://meta.discourse.org/t/bug-when-the-category-list-receives-a-new-subcategory-that-was-just-created/91919/1 "2018-07-09T20:55:01Z")

</div>

Hi.  
So, if you’re on a Discourse page, and an admin creates a new subcategory, the category lists from your own page updates itself via ajax, which is good.  
It works well when a category is created, but there’s a bug if it’s a subcategory.

Here’s what the category selector displays when the admin create a subcategory **test** on the category **Autour d’une roue** :

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/e/4e290c8ef3450a03742e81fe7d2f41e839ecd6db.png)

As it is a subcategory, it should not be displayed among the parent categories. Plus, if you click on it, it leads to a 404.

You have to actually reload the page for the category list to be properly updated.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [July 9, 2018, 9:49pm UTC](https://meta.discourse.org/t/bug-when-the-category-list-receives-a-new-subcategory-that-was-just-created/91919/2 "2018-07-09T21:49:38Z")

</div>

Please read the definition of bug in the category description – _prevents normal use of Discourse_. There’s no way this qualifies as that.

---

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [July 9, 2018, 10:02pm UTC](https://meta.discourse.org/t/bug-when-the-category-list-receives-a-new-subcategory-that-was-just-created/91919/3 "2018-07-09T22:02:42Z")

</div>

Oh, sorry, alright. 🙂  
I thought clicking on a category that leads to a 404 would fit .
