We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5130c0e commit eceebaeCopy full SHA for eceebae
source/assets/javascripts/main.js
@@ -5,7 +5,7 @@ document.querySelectorAll("a").forEach((a) =>
5
let currentPath = document.location.href;
6
// Paths end with slashes in prod but not locally
7
if (currentPath.endsWith("/")) {
8
- currentPath.substring(0, currentPath.length - 1);
+ currentPath = currentPath.substring(0, currentPath.length - 1);
9
}
10
// Check if it points to the same page we're on
11
if (href.includes("#") && href.startsWith(currentPath)) {
0 commit comments