use window.location.href instead of a bare window.location
replaceState the stack changes