diff --git a/assets/js/menu.js b/assets/js/menu.js index 125c49a..c52f872 100644 --- a/assets/js/menu.js +++ b/assets/js/menu.js @@ -24,6 +24,7 @@ window.addEventListener("resize", isMobileMenu); const logo = document.querySelector(".logo__pathname"); if(logo){ window.onload = () => { - logo.textContent += window.location.pathname.substring(1); + const path = window.location.pathname.substring(1); + logo.textContent += path.substring(0,path.indexOf('/')); }; } \ No newline at end of file