-
Notifications
You must be signed in to change notification settings - Fork 867
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
[Bug] Modern template always sets the first navbar element as active #9877
Comments
Reported issue seems to be caused by following functions.
docfx/templates/modern/src/nav.ts Lines 136 to 161 in 81790ce
To resolve this issue. It need to exclude empty string from comparison.
|
Any news on this? I would love to update to the modern template, but this bug prevents me from doing so. |
Describe the bug
The modern template sets the first navbar element always as active. It seems to disregard parts of the path in the url to fully check if the path matches and only then set it active.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The first element in the navbar (meaning a subfolder) should not be set to active.
Context (please complete the following information):
Additional context
The default theme does not have this issue.
docfx.json:
toc.yml (root):
Website with modern template:
Website with default template (built with version 2.66.0):
https://mitschmr-studios.io/documentation/twitch/
The text was updated successfully, but these errors were encountered: