Use History interface to change URL without reload.

HTML5's `history.replaceState` doesn't reload the page unlike `window.location`. This change reduces page load time of the affected URLs.