Sidebar Bug?
-
Hi BetterDocs Team,
I’m encountering an issue with the sidebar behavior when using nested categories. Here’s the situation:
- I have a parent category (e.g.,
Shipping Providers) and a subcategory (e.g.,DPD). - The URL structure is correctly hierarchical (e.g.
/helpcenter/shipping-providers/dpd/testing-dpd/) thanks to the “Enable Category Hierarchy Slug” setting. - Breadcrumbs also reflect the correct structure.
However, when I open a single doc (e.g.,
testing-dpd), the sidebar collapses the hierarchy:- The subcategory (
DPD) is displayed as a top-level category. - The parent category (
Shipping Providers) is not expanded or marked as active. - As a result, the sidebar structure is misleading and confusing for users.
Expected behavior:
When viewing a single doc, the sidebar should:- Keep the parent category (
Shipping Providers) expanded, - Show the correct indentation and structure of subcategories,
- Highlight the currently viewed doc under its actual nested location.
I’ve confirmed:
- The doc is only assigned to the subcategory (
DPD), - “Enable Category Hierarchy Slug” is enabled,
- No custom slugs or permalink plugins are overriding behavior.
This seems to be a frontend rendering issue where the JavaScript doesn’t maintain or open the parent category on doc page load.
Please let me know if there’s an internal fix or a recommended approach. A persistent sidebar state based on the full category path would be ideal.
The page I need help with: [log in to see the link]
- I have a parent category (e.g.,
The topic ‘Sidebar Bug?’ is closed to new replies.