jquery-querystring icon indicating copy to clipboard operation
jquery-querystring copied to clipboard

parse broken on URLs with no '?'

Open ronco opened this issue 11 years ago • 0 comments

If you have a URL with no query string and no '?' and try to parse it (common use case being a relative path URL) the original URL is included in the resulting querystring object as a param name with no value.

Here is a JsBin demonstrating the problem. Note that the anchor tag with the relative path href gets a bogus querystring added from the library: /foo?/foo=&name=value.

I've put together a patch with additional tests and will be sending a PR shortly.

ronco avatar Jun 09 '14 21:06 ronco