Skip to content

Commit

Permalink
ui: Decode "+" in the query parameters as "%20"
Browse files Browse the repository at this point in the history
I just copied the solution from here since it's been a while since
using functional languages and I didn't know the order of the parser,
but I suspect there are much better places to put this, including
repacing in `rest` above

Signed-off-by: James M Leddy <[email protected]>
  • Loading branch information
jmleddy committed Aug 6, 2024
1 parent 22bfc8a commit 0db9d66
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/app/src/Parsing.elm
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ urlParser url =
h :: rest ->
( h, Just (String.concat rest) )
in
case parse routeParser { url | query = query, fragment = Nothing, path = path } of
case parse routeParser { url | query = Maybe.map (String.replace "+" "%20") query, fragment = Nothing, path = path } of
Just route ->
route

Expand Down
Binary file modified ui/react-app/dist/97.js.gz
Binary file not shown.
Binary file modified ui/react-app/dist/97.js.map.gz
Binary file not shown.
Binary file modified ui/react-app/dist/main.js.gz
Binary file not shown.
Binary file modified ui/react-app/dist/main.js.map.gz
Binary file not shown.

0 comments on commit 0db9d66

Please sign in to comment.