diff --git a/app/index.html b/app/index.html
index 6294994de..b6a97c6a2 100644
--- a/app/index.html
+++ b/app/index.html
@@ -134,10 +134,12 @@
{{appTitle}}
}
document.addEventListener('click', function (event) {
- if (event.target.tagName == 'A') {
- window.location.replace(event.target.href)
- }
- });
+ event.preventDefault();
+ if (event.target.tagName == 'A' && event.target.href) {
+ window.history.pushState({}, '', window.location.toString());
+ window.location.replace(event.target.href);
+ }
+ });