diff --git a/assets/js/router.js b/assets/js/router.js
index 7bc8757c7a0d83c6cdac330732dda7a30de7cb3e..62b178b8da8574d47696cc03cd36404b75fad718 100644
--- a/assets/js/router.js
+++ b/assets/js/router.js
@@ -24,7 +24,9 @@ function GetShortcutDestination() {
 }
 
 function RedirectTo(newLocation) {
-    document.location.replace(newLocation);
+    setTimeout(function() {
+        window.location.replace(newLocation);
+    }, 1);
 }
 
 // Pick the shortcut link destination from URL, like: `category:subcategory:card-name`