T
TanStack3mo ago
optimistic-gold

How can I make my URLs readable instead of URL-encoded JSON?

How can I make my URLs readable instead of URL-encoded JSON? Currently getting: ?filters=%7B"status"%3A"active"%2C"category"%3A"api"%7D Want URLs like: ?status=active&category=api&page=1&limit=20 Would I need to use something like the query-string package?
1 Reply
sunny-green
sunny-green3mo ago
Custom Search Param Serialization | TanStack Router React Docs
Diagram showing idempotent nature of URL search param serialization and deserializationBy default, TanStack Router parses and serializes your URL Search Params automatically using JSON.stringify and JSON.parse. This process involves escaping and unescaping the search string, which is a...

Did you find this page helpful?