Closed mrdotb closed 9 months ago
Following #262 Finally it's not a good idea to encode the path first you have to split the query from the path and encode. Something like
uri = URI.new!("/team?page=:page") iex(7)> URI.decode_query(uri.query) %{"page" => ":page"} iex(8)> query = URI.decode_query(uri.query) |> URI.encode_query() "page=%3Apage" iex(9)> %{uri | query: query} |> to_string() ""/team?page=%3Apage""
Instead I use a simple regex with a OR.
Looks great. Many thanks for contributing! 🙌
Following #262 Finally it's not a good idea to encode the path first you have to split the query from the path and encode. Something like
Instead I use a simple regex with a OR.