Side menu does not expand nested menu items on page load in references generated using redoc-cli
Open
Nobody has claimed this yet.
Type: Bug
- Dominant language
- TypeScript
- Stars
- 25.9k
- Forks
- 2.4k
- Avg merge
- 13h 10m
- Merged PRs (30d)
- 4
Description
Steps to reproduce:
- Clone redoc repository to local.
- Generate the redoc-static.html file using redoc-cli
redoc-cli bundle demo/openapi.yaml - Open the redoc-static.html file with an anchor representing a nested menu item, ie.
X:/yourpath/redoc-static.html#operation/getInventoryin a web browser. - The side menu does not expand a nested menu item.
The side menu looks like this:

However, it should look like this:

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue by running redoc-cli with demo/openapi.yaml, then open redoc-static.html at an operation anchor such as #operation/getInventory. Trace the generated reference side-menu behavior and verify that the relevant nested menu item expands automatically on page load.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- cli, documentation, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100