Why is URI.join so counterintuitive?
I recently found myself using URI.join to construct certain some redirect URLs. But I quickly ran into a problem. URI.join wasn’t behaving like I expected. In this post we trace the unexpected behavior through the source of URI.join and back to the original RFC. - http://blog.honeybadger.io/why-is-uri-join-so-counterintuitive/
Comments
You can use File.join:
File.join(“https://www.honeybadger.io”, “plans”, “change”)
:)
Post a comment