diff --git a/resources/html-templates/login.html b/resources/html-templates/login.html index d3e5ed69..971cbf2e 100644 --- a/resources/html-templates/login.html +++ b/resources/html-templates/login.html @@ -486,7 +486,10 @@ target.searchParams.set('code', clientCode); if (oauth.state) target.searchParams.set('state', oauth.state); target.searchParams.set('iss', issuer || url.origin); - window.location.assign(target.toString()); + // Replace, not assign: once used, this page is spent, and an + // app that opened it shouldn't find it again behind Back + // (inbuxa-server #403). + window.location.replace(target.toString()); } function handleResponse(resp) { diff --git a/resources/html-templates/login.html.min b/resources/html-templates/login.html.min index c8e2b76e..4a4c4814 100644 --- a/resources/html-templates/login.html.min +++ b/resources/html-templates/login.html.min @@ -1 +1 @@ -
Enter your credentials to continue
Enter your credentials to continue