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".
src/js/helpers/uri.js:44generates 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.srcis"google,google"which is not what you would expect.The expected result would be to ignore the duplicate values and
sbjs.get.current.srcshould just be"google".