Fix hash navigation browser history

See https://github.com/tnc-ba/strongTNC/commit/009d6eb1b3375d615a786e44fbe5f3cdee849162#commitcomment-6447782.

> This doesn't work very well. Whenever the hash is changed it causes a new entry in the browser's history. Especially with the changes in c6cb544 up to two two additional entries are created when navigating to a new page. Using window.location.replace might be an option, or history.replaceState(), if supported by the browser.