Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task
rogozind opened this issue Sep 3, 2021 · 2 comments
Closed
1 task
Labels
bug confirmed as a bug needs investigation

Comments

@rogozind
Copy link

rogozind commented Sep 3, 2021

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)

@trusktr
Copy link
Member

trusktr commented Sep 9, 2021

Seems like a bug. As the docs don't explain how sidebar behavior should work (undefined) when relative path is true, I think we have room to fix it in a non-breaking release. Wdyt?

@jhildenbiddle
Copy link
Member

Bug acknowledged. Tracking with #1891.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug confirmed as a bug needs investigation
Projects
None yet
Development

No branches or pull requests

4 participants