X-Git-Url: https://git-public.kairo.at/?p=lantea.git;a=blobdiff_plain;f=js%2Fui.js;h=02e294735001bdd228469e4bdd450f137d60b7d4;hp=1ddf65a3d5b7c2fd2ebe3e3fe6547a4ae585030b;hb=67aadbe86b7bb9d03cf24784a17238404934195d;hpb=87be10576902819cc7d688596c60093ae550adb4 diff --git a/js/ui.js b/js/ui.js index 1ddf65a..02e2947 100644 --- a/js/ui.js +++ b/js/ui.js @@ -135,7 +135,7 @@ function startLogin() { } function getRedirectURI() { - return window.location.protocol + '//' + window.location.host + window.location.pathname + "login.html"; + return window.location.protocol + '//' + window.location.host + window.location.pathname.replace("index.html", "") + "login.html"; } function doLogout() { @@ -171,7 +171,7 @@ function prepareLoginButton(aCallback) { } } else { - console.log("Backend issue fetching OAuth state."); + console.log("Backend error " + aStatus + " fetching OAuth state: " + aResult["message"]); } if (aCallback) { aCallback(); } },