Persist active mailbox in URL query params

Featurekamo-internal
Shipped
April 26, 2026 at 5:10 AM UTC
Author
kamo
Commit
8d024ce

Switching mailboxes now updates the URL (?mailboxType, ?mailboxId, ?mailbox) so refreshing the browser restores the same mailbox. MessageBrowser reads window.location.search in its lazy useState initializer to restore activeMailbox before the first render, and pushes URL updates via router.replace on every mailbox-changed event. FolderSidebar reads the same URL params after getAccessibleMailboxes resolves so the dropdown reflects the restored selection.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing