Skip to content

parse broken on URLs with no '?' #3

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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