Breadcrumb Component Issue with Multi-Level Category Hierarchy

AI-generated summary

The Breadcrumb component is not displaying the full hierarchy of multi-level categories. Steve_John reported that when viewing a topic with a hierarchy like Home/A/B/C, the breadcrumb trail shows “Home/B/C” and skips category A. Nolo confirmed that this is a limitation of the component, which only checks for nested categories up to the sub-category level. To support further nesting, Nolo suggested asking the maintainer for a potential PR or forking the component. Steve_John acknowledged this limitation.

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!

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.

Thanks Nolo for the update on the Breadcrumb current theme component limitation.