This doesn't work as relative URLs work, see this example:

```ruby
baseURL = 'http://example.com/v1/'
location = '/v2'
(baseURL + location).should == 'http://example.com/v2'  # it will actually equal http://example.com/v1//v2
```

Instead, use `URI.join`. It should deal with this (and other stuff too):

```ruby
[5] pry(main)> URI.join('http://example.com/v1/', '/v2')
=> #<URI::HTTP:0x007fe32b8b67b0 URL:http://example.com/v2>
[6] pry(main)> URI.join('http://example.com/v1/', 'v2')
=> #<URI::HTTP:0x007fe32b126838 URL:http://example.com/v1/v2>
[9] pry(main)> URI.join('http://example.com/v1/test', 'foo')
=> #<URI::HTTP:0x007fe32b1f3248 URL:http://example.com/v1/foo>
[10] pry(main)> URI.join('http://example.com/v1/test', '../foo')
=> #<URI::HTTP:0x007fe32b194f18 URL:http://example.com/foo>
```