• Resolved mariooooo

    (@mariooooo)


    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:

    1. Keep the parent category (Shipping Providers) expanded,
    2. Show the correct indentation and structure of subcategories,
    3. 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]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Amin

    (@amin7)

    Hi @mariooooo
    Greetings!
    Thanks for the detailed description. If I get you correctly, then the categories and subcategories are not expending/ shows as active accordingly, when visiting the respective single doc link. But, I checked your shared link, and it seems working as it should, I mean the respective parent category is expanded, please check here, https://d.pr/v/pIb6c7
    I also, try to replicate the scenario on my side and its also working here, https://d.pr/v/AHbHD8

    Please correct me if I misunderstand you, a screencast will help me to understand the scenario. You can use this free tool, https://www.loom.com/ to record your screen.

    Looking forward to hearing from you.

    Thanks

    Plugin Support Amin

    (@amin7)

    Hi @mariooooo

    Greetings!

    We have not heard from you since our last reply. Are you still facing the issue? If yes, then please share a screen record as per our last reply.

    Thanks

    Plugin Support Amit Barai Alit

    (@amitbarai013)

    Hello @mariooooo,
    I hope this message finds you well.

    ​It seems we haven’t received any further communication from you regarding your issue. Therefore, I’m assuming that the issue has been resolved. As a result, we are marking this topic as resolved for now.

    However, please remember that you are always welcome to open a topic if you have any questions or, face any issues at any time. We are always here to assist you further.

    Thank you.
    Have a nice day!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Sidebar Bug?’ is closed to new replies.