Skip to content

parse broken on URLs with no '?' #3

@ronco

Description

@ronco

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions