Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.

Conversation

@AlexRiina
Copy link

The querystring is already url encoded as part of toString so if the study name has special characters, they end up encoded twice between making it to the backend

qs = new URLSearchParams([['a', 'b'], ['1=2', '3=4']])
// URLSearchParams {}

qs.toString()
// "a=b&1%3D2=3%3D4"

encodeURI(qs.toString())
// "a=b&1%253D2=3%253D4"

The querystring is already url encoded as part of toString so if the study name has special characters, they end up encoded twice between making it to the backend

```js
qs = new URLSearchParams([['a', 'b'], ['1=2', '3=4']])
// URLSearchParams {}

qs.toString()
// "a=b&1%3D2=3%3D4"

encodeURI(qs.toString())
// "a=b&1%253D2=3%253D4"
```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant