Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setSearch() breaks previous url parameters #396

Open
Itazulay opened this issue Mar 29, 2020 · 0 comments
Open

setSearch() breaks previous url parameters #396

Itazulay opened this issue Mar 29, 2020 · 0 comments

Comments

@Itazulay
Copy link

var myUri = new URI("https://google.com/a?b=c&d=e,f,g")
myUri.toString() // "https://google.com/a?b=c&d=e,f,g"
myUri.setSearch("new", "value")
myUri.toString() // "https://google.com/a?b=c&d=e%2Cf%2Cg&new=value"

Apparently during the buildQueryParameter functionality, we encode each parameter value thus causing ',' value to be encoded and not its original value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant