diff --git a/index.html b/index.html
index dd8f4d5..d9d2009 100644
--- a/index.html
+++ b/index.html
@@ -43,7 +43,7 @@
Array.from(navlinks).forEach(element => {
let ref = element.href.substr(element.href.lastIndexOf('/'), element.href.length);
- if (window.location.href.includes(ref) || element.href === 'index.html') {
+ if (window.location.href.includes(ref) || element.href.includes('index.html')) {
element.setAttribute('class', 'active');
}
/**