I have query param as array: ?cars=[Audi,Fiat] But ember encode it to ?cars=%5BAudi%2CFiat%5D How I can get more pretty url like ?cars=[Audi,Fiat] ? Why ember encodes reserved url characters?
1 Answer
You can override serializeQueryParam and deserializeQueryParam private methods in your route.
In these methods instead of JSON.stringify and JSON.parse, you can return the value itself and get whatever you want to parse from the string.