Skip to content

Using the outliner to navigate to headings inside of tabs does not work #2799

Description

@charlesdaniels

When a heading is used inside of a tab, it will always appear in the outline, but if the tab it is inside of is not selected, clicking it in the outline does nothing.

To Reproduce

I will attach a tarball with a minimal redocly site that reproduces this behavior, along with a screen capture demonstrating it. I used npm run dev to run the site shown in the capture.

In the tarball, run npm install then npm run dev.

Expected behavior

Either:

  1. Headings inside of unselected tabs do not appear in the outliner.
  2. Selecting a heading inside of an unselected tab first selects the tab, then navigates to the heading.

Personally, I would prefer option 2, but I think either could be argued to be correct.

Logs

N/A

npm run dev reports Previewing with @redocly/redoc-revel@0.130.4.

OpenAPI description

N/A

Redocly version(s)

$ npm ls @redocly/cli @redocly/realm @redocly/redoc-revel --depth=0
redocly-tabs-index-repro@1.0.0 /Users/cad/f/tmp/2026-05-07_redocly-tabs-index-repro
├── @redocly/cli@2.30.4
├── @redocly/realm@0.130.4
└── @redocly/redoc-revel@0.130.4

Node.js version(s)

$ npm --version
10.9.3

OS, environment

macOS Sequoia 15.7.4 on Apple Silicon.

redocly-repro.tgz

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions