Skip to content

Website Breadcrumbs is misleading when same document is used in multiple sections in sidebar #12985

@cderv

Description

@cderv

Reported by @AshleyHenry15 on a bigger webs
Demo website to reproduce: https://github.com/cderv/debug-website-sidebar-breadcrumbs/tree/main

When the same file is used in two places in sidebar section like

  sidebar:
  - id: admin-guide
    collapse-level: 1
    contents:
      - text: "Introduction"
        href: admin/index.qmd
      - text: "---"
      - section: "SmartWidget Pro"
        contents:
          - text: "Overview"
            href: admin/smartwidget/overview.qmd
          - admin/integrations/api_guide.qmd
      - section: "CRM Connect"
        contents:
          - text: "Overview"
            href: admin/crm/overview.qmd
          - admin/integrations/api_guide.qmd

The link of the second will send to the first page. This is a about breadscrumbs et page content

Gif showing the problem of clicking on second api guide section under CRM section, linking to the first one under Smartwidget

This is definitely misleading to users, but I don't know if we could share the same page and have the breadcrumbs and highlighted sidebar part updated correctly.

I wonder if this should be two documents instead, for different HTML in output, and each would use same include 🤔
This could be a workaroudn

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwebsitesIssues creating websites

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions