Topic: selenium verify_location with relative path

Hello guys,
I have to do some testing on a "old" 2.0.2 app and I have decided to use Selenium for that.
Is there a way to use a relative path with verify_location?
Or, is there a way to get dynamically the URL base (for instance http://localhost:3001/).

I'd like to make my test URL independent, so if I start the server on a different port the tests still work.