Hey all, I’m looking for something similar to the Ruby Addressable gem, to join URLs.
That is, given a base URL and a relative URL, it will join them to return the absolute URL, like:
> Addressable::URI.join("http://example.com/faqs.html", "../contact").to_s => "http://example.com/contact"
I suppose this should be done using
Path, but there are many cases to consider and I wonder if there is already a package that handles this.