URL state
Put shareable navigation state in the URL.
Use this when Reloading or sharing a filtered page loses the selected view.
without the term
“When I filter the product list and refresh, or send the link to a coworker, the filters are gone. And the back button doesn't undo a filter. Can you fix that?”
with the term · How do you ask a model for URL state?
Make these filters URL state. Validate parameters and verify reload, sharing, and back navigation restore the same view.
What is URL state?
URL state encodes choices such as filters and pagination so navigation can restore them.
Why does URL state matter when vibe coding?
Local component state can make a useful view impossible to bookmark.
How do you do URL state?
Define supported parameters and defaults. Check reload, shared links, and browser back navigation.
What goes wrong with URL state?
Private or sensitive values are exposed in URLs and history.