Redocly / Redocly/redoc

Side menu does not expand nested menu items on page load in references generated using redoc-cli

Open
#1,698 1 comment 2 reactions 0 assignees View on GitHub

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:

  1. Clone redoc repository to local.
  2. Generate the redoc-static.html file using redoc-cli redoc-cli bundle demo/openapi.yaml
  3. Open the redoc-static.html file with an anchor representing a nested menu item, ie. X:/yourpath/redoc-static.html#operation/getInventory in a web browser.
  4. The side menu does not expand a nested menu item.

The side menu looks like this:
image

However, it should look like this:
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.