Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit f367739

Browse files
committed
fixed navbar urls
1 parent 48c4e59 commit f367739

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

js/navbar.js

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ if (navbarContainer) {
1313
navLinks.forEach(link => {
1414
if (link.pathname === window.location.pathname) {
1515
link.parentElement.classList.add("active");
16+
} else if (link.pathname === "/index.html" && window.location.pathname === "/") {
17+
link.parentElement.classList.add("active");
1618
}
1719
})
1820
})

navbar.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
<!-- Nav Item - Patcher -->
6161
<li class="nav-item">
62-
<a class="nav-link" href="/">
62+
<a class="nav-link" href="index.html">
6363
<i class="fas fa-fw fa-wrench"></i>
6464
<span>Patcher/Flasher</span></a>
6565
</li>

0 commit comments

Comments
 (0)