let basis = ""; if (location.pathname.includes("/sites/legal/")) { basis = "../../"; } else if (location.pathname.includes("/sites/")) { basis = "../"; } document.getElementById("navigation").innerHTML = ` `;