Sign-in page: replace itself in the history when it hands back the code #404

Merged
jcoffey-dev merged 1 commits from fix/403-login-replace-history into main 2026-11-16 16:26:39 +00:00
Owner

After a successful sign-in, login.html sent the browser on to the app with location.assign, leaving the spent sign-in page behind in the history. In the console and webmail installed as apps, Back then landed on that form, and signing in there failed with a state mismatch (forum t/232). It now uses location.replace. The minified and gzipped copies are rebuilt with resources/scripts/minify_html.sh --gzip; the same tool reproduced the committed files byte for byte before the change.

The console and webmail sides are inbuxa/inbuxa-admin#222 and inbuxa/inbuxa-webmail#96.

Fixes #403

After a successful sign-in, `login.html` sent the browser on to the app with `location.assign`, leaving the spent sign-in page behind in the history. In the console and webmail installed as apps, Back then landed on that form, and signing in there failed with a state mismatch (forum t/232). It now uses `location.replace`. The minified and gzipped copies are rebuilt with `resources/scripts/minify_html.sh --gzip`; the same tool reproduced the committed files byte for byte before the change. The console and webmail sides are inbuxa/inbuxa-admin#222 and inbuxa/inbuxa-webmail#96. Fixes #403
jcoffey-dev added 1 commit 2026-11-16 16:01:14 +00:00
Sign-in page: replace itself in the history when it hands back the code
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 8m5s
f07ca5514e
After a successful sign-in the page sent the browser on to the app with
location.assign, which leaves the sign-in page behind in the history.
In an installed app, Back from the app then landed on a spent sign-in
form; the console had already used its state, so signing in there
failed. It now uses location.replace. Minified and gzipped copies
rebuilt with resources/scripts/minify_html.sh --gzip.

Fixes #403
jcoffey-dev merged commit cb49c2ed47 into main 2026-11-16 16:26:39 +00:00
jcoffey-dev deleted branch fix/403-login-replace-history 2026-11-16 16:26:39 +00:00
Sign in to join this conversation.