Back after going from a folder to Inbox does nothing, then exits (installed app) #142

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): select a folder, then Inbox. The first Back does nothing; the second closes the app.

In the installed app, moves between folders replace the current entry unless you're leaving the inbox (#96, web/src/lib/backStack.ts). Inbox → folder pushes, so history is [/mail, /mail/<folder>]; folder → Inbox then replaces, giving [/mail, /mail/<inboxId>]. Both are the inbox, so the first Back lands on the page already shown. The rail and module links behave the same way.

Wanted: moving to the inbox from another page goes back to the inbox entry behind it instead of replacing, so Back from the inbox closes the app in one press. Guard it with a marker in history.state, so an app opened straight on a folder doesn't exit when the user picks Inbox.

Code: web/src/lib/backStack.ts, folder links in MailboxTree.tsx, rail links in AppShell.tsx.

Reported on the forum (https://community.coffeylabs.org/t/232, post 46): select a folder, then Inbox. The first Back does nothing; the second closes the app. In the installed app, moves between folders replace the current entry unless you're leaving the inbox (#96, `web/src/lib/backStack.ts`). Inbox → folder pushes, so history is `[/mail, /mail/<folder>]`; folder → Inbox then replaces, giving `[/mail, /mail/<inboxId>]`. Both are the inbox, so the first Back lands on the page already shown. The rail and module links behave the same way. Wanted: moving to the inbox from another page goes back to the inbox entry behind it instead of replacing, so Back from the inbox closes the app in one press. Guard it with a marker in `history.state`, so an app opened straight on a folder doesn't exit when the user picks Inbox. Code: `web/src/lib/backStack.ts`, folder links in `MailboxTree.tsx`, rail links in `AppShell.tsx`.
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: in the installed app, going to Inbox from a folder steps back to the inbox already behind it, so the next Back closes the app. Ships in the next webmail RC.

Fixed in #144: in the installed app, going to Inbox from a folder steps back to the inbox already behind it, so the next Back closes the app. 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#142