client/main: go to window.location.pathname so cold-opening pushState() URLs work