Back after "Back to my mail" goes through the group again #143

Closed
opened 2026-11-22 00:11:46 +00:00 by jcoffey-dev · 1 comment
Owner

Reported on the forum (https://community.coffeylabs.org/t/232, post 46): switch to a group, then use "Back to my mail" in the bar at the top. Back then goes to the group, then to your own mail, then exits.

DelegatedBar.tsx's back calls view(null) and then navigate("/mail"), which pushes a new entry. History ends up own → group → own. Switching back with the account menu (switchTo(null) in AppShell.tsx) does the same.

Wanted: "Back to my mail" unwinds to the entry from before the switch, like pressing Back (#133), so the group's pages are no longer in history. Record in history.state how many entries were pushed since entering the group and history.go(-n); the popstate handler in accountHistory.ts already switches the account back. With no record, fall back to view(null) plus a replace.

Code: web/src/views/DelegatedBar.tsx, switchTo() in web/src/views/AppShell.tsx, web/src/lib/accountHistory.ts.

Reported on the forum (https://community.coffeylabs.org/t/232, post 46): switch to a group, then use "Back to my mail" in the bar at the top. Back then goes to the group, then to your own mail, then exits. `DelegatedBar.tsx`'s back calls `view(null)` and then `navigate("/mail")`, which pushes a new entry. History ends up own → group → own. Switching back with the account menu (`switchTo(null)` in `AppShell.tsx`) does the same. Wanted: "Back to my mail" unwinds to the entry from before the switch, like pressing Back (#133), so the group's pages are no longer in history. Record in `history.state` how many entries were pushed since entering the group and `history.go(-n)`; the popstate handler in `accountHistory.ts` already switches the account back. With no record, fall back to `view(null)` plus a replace. Code: `web/src/views/DelegatedBar.tsx`, `switchTo()` in `web/src/views/AppShell.tsx`, `web/src/lib/accountHistory.ts`.
jcoffey-dev added this to the 27.1 milestone 2026-11-22 00:11:46 +00:00
jcoffey-dev added the bug
priority
p3
labels 2026-11-22 00:11:46 +00:00
jcoffey-dev self-assigned this 2026-11-22 00:11:46 +00:00
Author
Owner

Fixed in #144: "Back to my mail", and your own mail in the account menu, now step back past the group's pages instead of adding one. Ships in the next webmail RC.

Fixed in #144: "Back to my mail", and your own mail in the account menu, now step back past the group's pages instead of adding one. Ships in the next webmail RC.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: inbuxa/inbuxa-webmail#143