Breadcrumb Component Issue with Multi-Level Category Hierarchy

Hi everyone,

We’ve recently installed the Breadcrumb component (Breadcrumb Links) to help navigate our multi-level category hierarchy. However, we’ve run into an issue. As I know, Discourse currently supports a maximum of 3 levels for multi-category creation.

When viewing a topic that follows a hierarchy like Home/A/B/C, where A, B, and C represent multi-level categories, the breadcrumb display shows “Home/B/C” and skips category A altogether.

Has anyone else experienced this? Is there a workaround to ensure that all levels of the hierarchy show up in the breadcrumb trail, or is this a limitation of the current Discourse setup?

Thanks for any insights!

(post deleted by author)

By default Discourse supports categories and sub-categories. If you use sub-sub-categories, that’s a custom setup that you enabled on the server console.

Right now the component doesn’t check for nested categories beyond the sub-category level. So it’s a limitation of the component. If you want to add support for further nesting of categories, you could ask the maintainer if that’s an option they’d consider as a PR. However, as this is targeting a non-default Discourse setup you might need to fork the component to include the feature.

3 Likes