Skip to content

Conversation

@marcelotto
Copy link
Contributor

Yet another fix of an issue in URI.merge/2 revealed by the W3C JSON-LD 1.1 test suite. The problem is that resolving a relative path with dot segments against a base URI incorrectly removes the trailing slash when the resolution ends at the root path.

Minimal example:

URI.merge("http://a/b", "..") |> to_string()
# Current: "http://a"    (incorrect)
# Expected: "http://a/"   (correct)

@josevalim josevalim merged commit b601b1c into elixir-lang:main Mar 19, 2025
10 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants