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 @@ - Sign in · inbuxa

Sign in

Enter your credentials to continue

\ No newline at end of file + Sign in · inbuxa

Sign in

Enter your credentials to continue

\ No newline at end of file diff --git a/resources/html-templates/login.html.min.gz b/resources/html-templates/login.html.min.gz index e2ed231c..d1764f06 100644 Binary files a/resources/html-templates/login.html.min.gz and b/resources/html-templates/login.html.min.gz differ