You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Visiting homepage doesn't set homepage link in sidebar to active #1131
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.
yes, I do think it should be documented.
Feel free to submit a PR for the docs change
Activity
anikethsaha commentedon Apr 22, 2020
try setting
_sidebar.mdto/is not same ashome.mdso I would suggest using/as it will automatically render your homepage and it will set the active linksPS: thanks for filling the template completely and creating the sandbox.
its very rare to see here.
groenroos commentedon Apr 22, 2020
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?
anikethsaha commentedon Apr 22, 2020
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.
yes, I do think it should be documented.
Feel free to submit a PR for the docs change
Mention docsifyjs#1131 pitfall
zhouzi commentedon May 12, 2020
Wouldn't it be possible to check for
config.homepageif the file cannot be requested based on the URL? I mean, if the URL is/, obviously.I opened a PR to update the documentation btw 🙂
Merge pull request #1174 from Zhouzi/patch-1