when using hashbang routing, do NOT change the path to "/" on the initial route, instead use window.location.pathname (so the page doesnt reload)