Start here. This is the direct spoken answer to practice first.
Why this question matters
The URL is durable application state for pages users refresh, bookmark, share, and navigate with browser controls. Treating it as an afterthought creates pages that look correct until the first reload or Back action.
I would encode shareable view state such as search text, filters, sort order, page, or selected record in search parameters. The route reads and validates those values, applies defaults, and fetches data from the resulting query. Client controls update the URL through router navigation instead of maintaining a second independent filter object. A refresh or copied link then reproduces the same useful view.