diff --git a/index.html b/index.html
index c4e03ab..51e8549 100644
--- a/index.html
+++ b/index.html
@@ -15,7 +15,7 @@
-
Home
+
Home
Il progetto
L'itinerario
News & Eventi
@@ -47,7 +47,8 @@
/**
* @todo Take / location into account for Home!
*/
- if (window.location.href = '/') {
+ let homeRE = new RegExp(/https?:\S+\/$/);
+ if (homeRE.test(window.location.href)) {
navlinks[0].setAttribute('class', 'active');
}
});