jsUri icon indicating copy to clipboard operation
jsUri copied to clipboard

Query Parameters should not need x=y format

Open PandaWood opened this issue 9 years ago • 0 comments

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()

PandaWood avatar Jul 27 '16 03:07 PandaWood