Sign-in page leaves itself in the browser history #403

Closed
opened 2026-11-16 15:15:49 +00:00 by jcoffey-dev · 1 comment
Owner

Reported on the forum (https://community.coffeylabs.org/t/232, post 27): in the console and webmail installed as apps on Android, Back after signing in goes to the sign-in page.

After a successful sign-in, resources/html-templates/login.html sends the browser on with window.location.assign(target), which keeps the sign-in page as a history entry. Back from the app then lands on a stale sign-in form (the console has already dropped its pending state, so signing in there fails with a state mismatch).

Fix: window.location.replace(...) there, and regenerate the embedded login.html.min / login.html.min.gz. The console and webmail sides are tracked in their own repos.

Reported on the forum (https://community.coffeylabs.org/t/232, post 27): in the console and webmail installed as apps on Android, Back after signing in goes to the sign-in page. After a successful sign-in, `resources/html-templates/login.html` sends the browser on with `window.location.assign(target)`, which keeps the sign-in page as a history entry. Back from the app then lands on a stale sign-in form (the console has already dropped its pending state, so signing in there fails with a state mismatch). Fix: `window.location.replace(...)` there, and regenerate the embedded `login.html.min` / `login.html.min.gz`. The console and webmail sides are tracked in their own repos.
jcoffey-dev added the bug
priority
p3
labels 2026-11-16 15:15:49 +00:00
jcoffey-dev self-assigned this 2026-11-16 15:15:49 +00:00
jcoffey-dev added this to the 27.1 milestone 2026-11-16 15:22:40 +00:00
Author
Owner

Fixed in #404. The sign-in page now replaces itself in the history when it hands the code back, so Back from the console or webmail no longer lands on a spent sign-in form. Thanks to khashmeshab (https://community.coffeylabs.org/t/232). In the next server RC.

Fixed in #404. The sign-in page now replaces itself in the history when it hands the code back, so Back from the console or webmail no longer lands on a spent sign-in form. Thanks to khashmeshab (https://community.coffeylabs.org/t/232). In the next server RC.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: inbuxa/inbuxa-server#403