Skip to content

Query string parser generates array as value #38

@rinu

Description

@rinu

src/js/helpers/uri.js:44 generates an array when multiple values exist with the same key.

An exmaple URL would be http://example.com/?utm_source=google&utm_source=google

The uri helper generates an array of ["google", "google"] for utm_source which gets cast to a string later via string concatenation.

The end result when I access sbjs.get.current.src is "google,google" which is not what you would expect.

The expected result would be to ignore the duplicate values and sbjs.get.current.src should just be "google".

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