-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Visiting homepage doesn't set homepage link in sidebar to active #1131
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
Comments
try setting - Sidebar
- [Home](/)
- [Another page](another.md)
PS: thanks for filling the template completely and creating the sandbox. |
That does seem to fix the problem, thanks! 🎉 I do think the weirdness around linking to the proper name of the homepage file is something that should be fixed though. Or at least if this is intended behaviour, maybe it could be documented more clearly? |
this is an intended behavior as we do ajax request to the file based on the URL and we do supported remote file rendering and even remote homepage. |
Wouldn't it be possible to check for I opened a PR to update the documentation btw 🙂 |
Fix #1131: Document homepage active link pitfall
Bug Report
Steps to reproduce
README.md
or whatever's defined in thehomepage
setting) in the sidebarWhat is current behaviour
active
class to highlight it, and its submenu is not expanded.#/README
is appended to the URL, and then theactive
class is included.README
, even if the file is called something else.What is the expected behaviour
active
class, and the submenu should be expanded.homepage
Other relevant information
Bug does still occur when all/other plugins are disabled?
Your OS: macOS 10.15.4
Node.js version: 13.13.0
yarn version: 1.22.4
Browser version: Chrome 80.0.3987.149
Docsify version: 4.11.3
Docsify plugins: pagination, copy-code
Please create a reproducible sandbox
Mention the docsify version in which this bug was not present (if any)
N/A
The text was updated successfully, but these errors were encountered: