another fix
diff --git a/app/dtps.js b/app/dtps.js
index 86bb16d..a59d98e 100644
--- a/app/dtps.js
+++ b/app/dtps.js
@@ -356,7 +356,8 @@
                 window.localStorage.setItem("dtpsRefresh", data.refresh_token)
                 window.localStorage.setItem("dtpsUser", JSON.stringify(data.user))
                 dtps.oauth.token = data.access_token
-            }).fail(() => alert("An login error occured"));
+                dtps.init();
+            }).fail(() => { alert("An login error occured"); window.location.href = "https://dtps.js.org"; });
         } else {
             window.location.href = 'http://lms.jottocraft.com/login/oauth2/auth?client_id=' + dtps.oauth.clientID + '&response_type=code&state=dtps-login&redirect_uri=' + dtps.oauth.redirectURI;
         }
diff --git a/index.html b/index.html
index cb75985..4bd62b3 100644
--- a/index.html
+++ b/index.html
@@ -73,6 +73,7 @@
         $("#login").html(`<i class="material-icons">open_in_new</i> Open`)
       }
       if (window.location.href.includes("?logout=true")) {
+        window.history.replaceState(null, null, window.location.pathname);
         $("#login").html(`<i style="font-family: 'Material Icons Extended'" class="material-icons">lock</i> Logged out`)
       }
     })