Filter Query with a URL Parameter
Use URL-driven filtering when the current view should survive reloads, bookmarks, and shared links without custom JavaScript.
Introduction
Section titled “Introduction”URL-driven filtering is the right pattern when the current list state should survive refreshes, bookmarks, back-button navigation, or shared links. In Wappler, this usually means the filter is no longer just a local control. It becomes part of the page contract, which is why the address bar, Query Manager, and the displayed list need to stay in sync.
Design URL filtering deliberately
Section titled “Design URL filtering deliberately”The URL should clarify state, not expose chaos.
Choose which state belongs in the URL
Section titled “Choose which state belongs in the URL”Search terms, category filters, paging, and selected records often belong in query parameters. Temporary micro-interactions usually do not. Make that distinction on purpose.
Keep parameter meaning stable
Section titled “Keep parameter meaning stable”A parameter should represent the same kind of filter every time. Reusing one key for unrelated meanings makes linked views harder to trust and debug.
Connect URL state to the displayed view cleanly
Section titled “Connect URL state to the displayed view cleanly”Users should never have to guess whether the URL still matches the visible filter. The page should read from and write to the same state model consistently.
Next steps
Section titled “Next steps”URL filters combine especially well with sortable tables, totals, and detail views that should survive a reload.