Opening the RSK app with a query string with quotes, e.g. /search?q="Superconducting"
Check the search bar, it has as query string only Superconducting
Expected behavior
In the search bar, we should have "Superconducting"
Additional context
The issue is the function const _value = JSON.parse(value); in the UrlParser that is stripping out the quotes.
The function JSON.parse was chosen because it will cast int/bool to the the right type.
See here an example to reproduce it.
Describe the bug
Quotes are removed from the URL in query string.
Steps to Reproduce
/search?q="Superconducting"
Superconducting
Expected behavior
In the search bar, we should have
"Superconducting"
Additional context
The issue is the function
const _value = JSON.parse(value);
in theUrlParser
that is stripping out the quotes. The functionJSON.parse
was chosen because it will cast int/bool to the the right type. See here an example to reproduce it.