# 3rd level category nesting and Header Categories Navbar TC interacting poorly

**URL:** https://meta.discourse.org/t/3rd-level-category-nesting-and-header-categories-navbar-tc-interacting-poorly/274131
**Category:** Bug
**Created:** [August 6, 2023, 10:36pm UTC](https://meta.discourse.org/t/3rd-level-category-nesting-and-header-categories-navbar-tc-interacting-poorly/274131 "2023-08-06T22:36:38Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [August 6, 2023, 10:36pm UTC](https://meta.discourse.org/t/3rd-level-category-nesting-and-header-categories-navbar-tc-interacting-poorly/274131/1 "2023-08-06T22:36:38Z")

</div>

There is a bug in the interaction between sub-sub-categories and the navbar.

## Outline

I’ve got sub-sub-categories enabled on my site via this hidden setting:

```plaintext
SiteSetting.max_category_nesting = 3

```

After our last update of the site, the functionality seems to have broken.

The sub-sub-categories appear as they are meant to throughout the site, but when I attempt to click onto one of them I notice this:

1. The category page seems to load just fine initially

2. Then I get the spinning wheel of doom ☠

This error appears in the console:

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/d/8/6d88cb9cd2ffbb083627ebc37fcce6e7ddeaf313.png)

(this doesn’t appear when in categories or sub-categories)

## Workaround / other issues

The sub-sub-category page actually loads okay _if opened in a new tab/window_, but there are glitches in the navbar functionality and this similar error in the console:

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/2/0/c2002ec590e4fd9c75ae39b70db480d86e2812c1.png)

---

<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 6, 2023, 11:07pm UTC](https://meta.discourse.org/t/3rd-level-category-nesting-and-header-categories-navbar-tc-interacting-poorly/274131/4 "2023-08-06T23:07:49Z")

</div>

> [@nathank](#):
>
> the navbar.

This is a theme component right? Which one is it, can you link to it?

---

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [August 6, 2023, 11:29pm UTC](https://meta.discourse.org/t/3rd-level-category-nesting-and-header-categories-navbar-tc-interacting-poorly/274131/5 "2023-08-06T23:29:53Z")

</div>

Ah - I’m being a bit thick and equated the new terminology for the sidebar “i.e. Navigation” with this #official theme component:

> [@Header Categories Navbar](https://meta.discourse.org/t/header-categories-navbar/249179):
>
> discourse2Summary Header Categories Navbar is a simple component that adds a menu of parent category links to the site header, with horizontally scrolling overflow added if/when needed.eyeglassesPreview [Preview on Theme Creator](https://discourse.theme-creator.io/theme/Discourse/header-categories-navbar)hammer_and_wrenchRepository [https://github.com/discourse/discourse-categories-navbar](https://github.com/discourse/discourse-categories-navbar)questionInstall Guide [How to install a theme or theme component](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682)open_bookNew to Discourse Themes? [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) Instal…

When I disabled that Theme Component, nesting works just fine.

My only issue is that I really rely on it! But I understand that I’m probably one of very few using this TC with 3rd level nesting.

---

<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 6, 2023, 11:31pm UTC](https://meta.discourse.org/t/3rd-level-category-nesting-and-header-categories-navbar-tc-interacting-poorly/274131/6 "2023-08-06T23:31:24Z")

</div>

Will mention this to Kris in case he has any easy ideas for a fix.

---

<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 16, 2023, 6:41pm UTC](https://meta.discourse.org/t/3rd-level-category-nesting-and-header-categories-navbar-tc-interacting-poorly/274131/8 "2023-08-16T18:41:55Z")

</div>

This is fixed by: [FIX: update to support 3 levels of categories by awesomerobot · Pull Request #6 · discourse/discourse-categories-navbar · GitHub](https://github.com/discourse/discourse-categories-navbar/pull/6)

I just needed to make a small adjustment to accommodate for the additional category level. Thanks for reporting it!

---

<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 20, 2023, 10:00pm UTC](https://meta.discourse.org/t/3rd-level-category-nesting-and-header-categories-navbar-tc-interacting-poorly/274131/9 "2023-08-20T22:00:46Z")

</div>

This topic was automatically closed after 3 days. New replies are no longer allowed.
