From 6b3d82952227cf3b3da7ea79babe2e5a3f245aaa Mon Sep 17 00:00:00 2001 From: jesper <118400668+k1nsej@users.noreply.github.com> Date: Wed, 22 May 2024 22:28:17 +0200 Subject: [PATCH] Add netlify url to menu active class manager --- scripts/menufooter.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/menufooter.js b/scripts/menufooter.js index 0c6d300..d28b9c6 100644 --- a/scripts/menufooter.js +++ b/scripts/menufooter.js @@ -30,6 +30,8 @@ function addActiveClassToNavLinks() { console.log(currentUrl); currentUrl = currentUrl.replace("index.html", ""); console.log(currentUrl); + currentUrl = currentUrl.replace("simsinfo.netlify.app", ""); + console.log(currentUrl); fetch("/scripts/menulinks.json") .then((response) => response.json())