navi icon indicating copy to clipboard operation
navi copied to clipboard

Decode "+" in query string

Open malthejorgensen opened this issue 4 years ago • 0 comments

The plus-character is not getting decoded when used in the query string, but is instead passed on as-is in query parameters in request.params.

An example of a query string that uses plus signs is the default Github issues search query: https://github.com/frontarm/navi/issues?q=is%3Aissue+is%3Aopen+

See:

  • https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL
  • https://stackoverflow.com/questions/18717557/remove-plus-sign-in-url-query-string

malthejorgensen avatar Oct 22 '20 21:10 malthejorgensen