Skip to content

using relativePath sidebar sublevels do not render if I use direct link to a page. #1631

Description

@rogozind

Bug Report

When using relativePath:true sublevels of teh sidebar do not load if I reach teh page using direct link.

Steps to reproduce

Do a sidebar with a few levels:
L1
L1.1
L1.2
L2
L2.1

Go to the #/ and you will see sidebar is showing all the levels.

Now open a new browser tab and put direct URL to a subitem: http://localhost:3000/#/l1?id=l1.2

Sidebar only shows L1 and L2. When you click on these there are no items open.

If I remove relativePath:true then everything works as expected.

What is current behaviour

Only first level items are shown when direct link is used for navigation.

What is the expected behaviour

Should open subitems.

Other relevant information

  • Bug does still occur when all/other plugins are disabled?

  • Your OS:

  • Node.js version:

  • npm/yarn version:

  • Browser version:

  • Docsify version:

  • Docsify plugins:

Please create a reproducible sandbox

Edit 307qqv236

Mention the docsify version in which this bug was not present (if any)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions