Persist active mailbox in URL query params

Featurekamo-internal
Shipped
26 Aprili 2026, 05:10 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

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei