on master help sign in
Includes instead of exact matching
commit5abd0230ddd8668d53e92fcde270f23aac85b246 authorMatilde Park <matilde@tlon.io> dateFri 26 Jul 2019, 21:30 (7 years ago) parent7ace837
1 file changed+1−1
static/scripts.js+1−1
static/scripts.js+1−1
@@ -334,7 +334,7 @@ if (document.readyState === "complete" ||
334334let docsNavScroll = function() {
335335 let docsNav = document.querySelectorAll("ul.content-nav__index a")
336336 for (let link in docsNav) {
337− if (docsNav[link].href === window.location.href) {
337+ if (window.location.href.includes(docsNav[link].href)) {
338338 docsNav[link].focus()
339339 }
340340 }