Add functions to turn a connection into a URL