Skip to content
New issue

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 should not need x=y format #62

Open
PandaWood opened this issue Jul 27, 2016 · 0 comments
Open

Query Parameters should not need x=y format #62

PandaWood opened this issue Jul 27, 2016 · 0 comments

Comments

@PandaWood
Copy link

PandaWood commented Jul 27, 2016

I'm not sure this is debatable (though URI.js does it) that adding query string parameters can just have a single value - for example "&link" and not necessarily "&link=true"

If you pass only one arg to jsUri addQueryParameter you get the worst possible outcome: "&link="
But I this should produce just "&link"

new Uri(url).addQueryParam('link').toString()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant