From: Robert Kaiser Date: Tue, 3 Oct 2017 16:48:24 +0000 (+0200) Subject: make redirect URI also work if index.html is called specifically X-Git-Tag: production~41 X-Git-Url: https://git-public.kairo.at/?p=lantea.git;a=commitdiff_plain;h=67aadbe86b7bb9d03cf24784a17238404934195d;hp=070d28b52b712a9067c29e6a358d39d2c3816048 make redirect URI also work if index.html is called specifically --- diff --git a/js/ui.js b/js/ui.js index d8953ad..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() {