fix(client): Enable back button functionality when visiting `/`.

* use history.replaceState instead of history.pushState when redirecting from `/`.

fixes #763