Back after switching accounts should return to the previous account #133

Closed
opened 2026-11-20 18:23:08 +00:00 by jcoffey-dev · 1 comment
Owner

Reported on the forum (https://community.coffeylabs.org/t/232, post 40), follow-up to #128: in the installed app, after switching to a shared account (a group), Back closes the app. The reporter expects Back to return to the account they were on before.

#128 / #129 made the switch replace the history entry instead of pushing a new one, because the account shown isn't in the URL: the old entry landed on the inbox already on screen, so Back seemed to do nothing. That removed the dead step, but left nothing to go back to, so in the installed app Back now exits.

Wanted: Back undoes an account switch, the same way it undoes other navigation. Either put the account in the history entry (push with the account id in history.state, or in the URL, and switch accounts on popstate) so Back restores the previous account and its view. Make sure Back still never walks back into the sign-in page (#96, server #403), and that a stale entry for an account that is no longer available falls back to your own account.

Code: switchTo() in web/src/views/AppShell.tsx.

Forum reply: t/232 post 41.

Reported on the forum (https://community.coffeylabs.org/t/232, post 40), follow-up to #128: in the installed app, after switching to a shared account (a group), Back closes the app. The reporter expects Back to return to the account they were on before. #128 / #129 made the switch replace the history entry instead of pushing a new one, because the account shown isn't in the URL: the old entry landed on the inbox already on screen, so Back seemed to do nothing. That removed the dead step, but left nothing to go back to, so in the installed app Back now exits. Wanted: Back undoes an account switch, the same way it undoes other navigation. Either put the account in the history entry (push with the account id in `history.state`, or in the URL, and switch accounts on `popstate`) so Back restores the previous account and its view. Make sure Back still never walks back into the sign-in page (#96, server #403), and that a stale entry for an account that is no longer available falls back to your own account. Code: `switchTo()` in `web/src/views/AppShell.tsx`. Forum reply: t/232 post 41.
jcoffey-dev added this to the 27.1 milestone 2026-11-20 18:23:08 +00:00
jcoffey-dev added the
priority
p3
bug
labels 2026-11-20 18:23:08 +00:00
jcoffey-dev self-assigned this 2026-11-20 18:25:12 +00:00
Author
Owner

Fixed in #137, released in webmail 27.1-rc.12 and live on ihasmail.com: each page in the history now records the account it was showing, so Back from a shared or group mailbox goes to your own mail first, then out of the installed app.

Fixed in #137, released in webmail 27.1-rc.12 and live on ihasmail.com: each page in the history now records the account it was showing, so Back from a shared or group mailbox goes to your own mail first, then out of the installed app.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: inbuxa/inbuxa-webmail#133