T
TanStack6mo ago
foreign-sapphire

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
stormy-gold
stormy-gold6mo 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?