We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query parameters seems to be getting a lot of attention lately, so I wanted to chime in with a feature request.
Currently non-primitive query parameter values are just passed through encodeURIComponent(JSON.stringify(value)), which results in rather ugly URLs.
encodeURIComponent(JSON.stringify(value))
This example controller pushes a 'd' onto the original array, triggering a QP change.
'd'
export default Ember.Controller.extend({ queryParams: ['array'], array: ['a' ,'b', 'c'], init() { this._super(...arguments); Ember.run.schedule('afterRender', null, () => { this.get('array').pushObject('d'); }); } });
The URL I would expect is:
/?array[]=a&array[]=b&array[]=c&array[]=d
However the URL I get is:
/?array=%5B%22a%22%2C%22b%22%2C%22c%22%2C%22d%22%5D
Here's a Twiddle.
The text was updated successfully, but these errors were encountered:
/cc @nathanhammond
Sorry, something went wrong.
I believe this is a duplicate of #14174, can you review and confirm?
I do consider this to be a duplicate of #14174. @buschtoens I'm working on this over here: https://github.com/nathanhammond/query-string-spec
Awesome! I'll keep an eye on your repo. Thaks a lot. 😃
No branches or pull requests
Query parameters seems to be getting a lot of attention lately, so I wanted to chime in with a feature request.
Currently non-primitive query parameter values are just passed through
encodeURIComponent(JSON.stringify(value))
, which results in rather ugly URLs.This example controller pushes a
'd'
onto the original array, triggering a QP change.The URL I would expect is:
However the URL I get is:
Here's a Twiddle.
The text was updated successfully, but these errors were encountered: