Sign-in and sign-out replace the page instead of adding to the history #222

Merged
jcoffey-dev merged 1 commits from fix/215-back-button-history into main 2026-11-16 16:26:32 +00:00
Owner

Each step of signing in or out pushed a history entry: startAuthFlow, endSession and signOut. In the installed app, Back from the dashboard went to the server's sign-in page (already used, so it failed with a state mismatch) and then to /login, which started another sign-in, so Back never left the app (forum t/232).

Those steps now use location.replace / navigate(..., { replace: true }), and /login reached with a session in hand goes on into the console. The server's sign-in page needs the same change (inbuxa/inbuxa-server#403); with both, the sign-in collapses into the dashboard's entry and Back from there leaves the app.

Fixes #215

Each step of signing in or out pushed a history entry: `startAuthFlow`, `endSession` and `signOut`. In the installed app, Back from the dashboard went to the server's sign-in page (already used, so it failed with a state mismatch) and then to /login, which started another sign-in, so Back never left the app (forum t/232). Those steps now use `location.replace` / `navigate(..., { replace: true })`, and /login reached with a session in hand goes on into the console. The server's sign-in page needs the same change (inbuxa/inbuxa-server#403); with both, the sign-in collapses into the dashboard's entry and Back from there leaves the app. Fixes #215
jcoffey-dev added 1 commit 2026-11-16 16:00:19 +00:00
Sign-in and sign-out replace the page instead of adding to the history
ci / build (pull_request) Skipped
ci / publish (pull_request) Skipped
ci / notices (pull_request) Successful in 45s
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 2m3s
3fa4bf512b
Each step of signing in or out pushed a history entry: the console's
start of sign-in, the end of a session, and signing out. In the
installed app, Back from the dashboard then went to the server's
sign-in page (already used, so it failed) and to /login, which started
another sign-in, so Back never left the app.

Those steps now replace the current page. /login reached with a
session in hand goes on into the console. With the server's sign-in
page doing the same (inbuxa-server #403), the whole sign-in collapses
into the dashboard's entry, and Back from there leaves the app.

Fixes #215
jcoffey-dev merged commit e31f8e7f98 into main 2026-11-16 16:26:32 +00:00
jcoffey-dev deleted branch fix/215-back-button-history 2026-11-16 16:26:32 +00:00
Sign in to join this conversation.