1
0
mirror of https://github.com/snachodog/just-the-docs.git synced 2025-04-10 14:01:22 -06:00

Remove href from the navigation link to the current page ()

* Remove href from link to active page

* Update CHANGELOG.md

Co-authored-by: Matt Wang <matt@matthewwang.me>

---------

Co-authored-by: Matt Wang <matt@matthewwang.me>
This commit is contained in:
Peter Mosses 2023-09-29 22:33:15 +02:00 committed by GitHub
parent b342531fe4
commit cd4f1b02b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

@ -17,7 +17,11 @@ This website is built from the `HEAD` of the `main` branch of the theme reposito
Code changes to `main` that are *not* in the latest release:
- N/A
### Bugfixes
- Fixed: remove href from the navigation link to the current page by [@pdmosses] in [#1356]
[#1356]: https://github.com/just-the-docs/just-the-docs/pull/1356
## Release v0.6.2

@ -501,6 +501,7 @@ function activateNav() {
var target = navLink();
if (target) {
target.classList.toggle('active', true);
target.removeAttribute('href');
}
while (target) {
while (target && !(target.classList && target.classList.contains('nav-list-item'))) {