Closed rzane closed 3 years ago
Avoid URI.merge/2 for appending path segments to URLs. It doesn't always have the desired effect.
URI.merge/2
For example, if a user configured base_url: "http://example.com/foo":
base_url: "http://example.com/foo"
"http://example.com/foo" |> URI.merge("bar") |> URI.to_string # "http://example.com/bar"
Avoid
URI.merge/2
for appending path segments to URLs. It doesn't always have the desired effect.For example, if a user configured
base_url: "http://example.com/foo"
: