INTRODUCTION
Someone filters a list down to the twelve results that matter, copies the address and sends it to a colleague. The colleague opens it and sees the default list: every result, sorted by whatever the product prefers. The filter existed only in the first person's browser tab. Nothing broke, and yet the one thing they tried to share did not arrive.
Our view: the address bar is the only part of your interface that people can keep, send and come back to. Deciding what goes in it is a product decision, not a routing detail, and the rule is simple to state. If someone would reasonably send it to another person or expect to return to it, put it in the URL.
A URL is a promise you keep
In 1998, Tim Berners-Lee wrote a short page called "Cool URIs don't change". Its argument still holds: URIs do not change by themselves, people change them, and every change breaks someone's bookmark or link. That cuts both ways for interface state. Putting a filter in the URL makes the view shareable, and it also turns the parameter name into something you will have to keep honouring, because people will save it. Choose names you are willing to support for years.
Sort every piece of state into three bins
Make a list of the state on one busy screen, then give each item one of three answers.
A new place: change the URL and add a history entry. Opening an item, moving to the next step of a flow, switching to a tab that is really a different view. People expect the Back button to undo these, so each one deserves its own entry. In the browser this is history.pushState(), which adds an entry to the session history; when the person navigates back to it, a popstate event lets your code restore the view.
A refinement of the same place: change the URL, replace the entry. The search query as it is typed, the sort order, the density of a table. These should survive a reload and a shared link, but ten keystrokes should not create ten stops on the way back. history.replaceState() modifies the current entry instead of adding one. URLSearchParams, available across browsers since 2018, reads and writes the query string without hand-built string code.
Not in the URL at all. Half-typed form input, anything private, and anything purely momentary. Addresses travel: they are pasted into chats, kept in browser history and screenshots, and often written to server logs, so an email address or a token does not belong there. An open dropdown or a hover state is not something anyone returns to. Large application state does not fit either; MDN notes that browsers limit the size of history state objects and points to session storage for more.
Filters are the contested middle. Is ticking one checkbox a new place or a refinement? Our default is to replace on each change and to push only when people apply a set of filters as a deliberate step. Test it: press Back after filtering and see whether the result surprises you.
Back should return to the state people left
The GOV.UK Design System says it bluntly in its back link guidance: browsers have a back button, but some sites break when you use it, so many users avoid it rather than lose their progress. Its instruction for its own back links applies to the browser button too: take people to the previous page they were on, in the state they last saw it. Scroll position is part of that state. Browsers restore it on history navigation while history.scrollRestoration is set to "auto", but that only helps if the list is already drawn when they try.
Single-page apps have made this harder than it should be, because every route change is code the team writes. The newer Navigation API helps: it gives one navigate event for every kind of navigation, which suits routers better than the History API. MDN marks it Baseline 2026, newly available since January; browser compatibility data lists Chrome 102, Firefox 147 and Safari 26.2. Older browsers still need the History API path.
The counterargument: URLs get ugly and permanent
The objections are real. A URL carrying eight parameters is long and hard to read aloud. Every parameter you add becomes a public interface, and renaming one later means redirects or broken links. Some states conflict: if a person saved a default sort in their settings, which wins when a shared link carries a different one? And every filter combination is a distinct address that crawlers may find, which is a separate decision about which filtered pages deserve to be indexed.
We still prefer the URL, with discipline. Keep parameters short and readable, leave defaults out of the address, and let an explicit URL win over stored preferences, because the sender chose it. Decide indexing deliberately rather than by accident. Ugly but working beats tidy but forgetful.
A hypothetical hiring dashboard
Picture an internal hiring tool. A manager filters open roles to one city, sorts by date posted, scrolls to the third page, opens a role, edits it and presses Back. They land on page one of the unfiltered list and rebuild the view from memory, which is the same cost as making people type the same thing twice. The fix: city and sort live in the query string through replaceState, the page number too (as we argued for pagination and load more), opening a role pushes a new entry, and the list renders before the browser restores scroll. The manager can now also send the exact view to a recruiter. The scenario is invented and describes no Blanche client.
What to do next
Take your busiest screen and write every piece of state on a card: query, filters, sort, page, selected item, open panel, draft input. Sort the cards into the three bins. Then test the five moves that depend on the answer: reload, Back, Forward, open in a new tab, and paste the link into a private window.
Sources checked on 3 December 2026: Tim Berners-Lee's "Cool URIs don't change" (W3C, 1998); MDN's references for history.pushState(), history.replaceState(), history.scrollRestoration, URLSearchParams and the Navigation API, with compatibility from MDN browser-compat-data; and the GOV.UK Design System back link component. The hiring dashboard is hypothetical.