My bad here - this should also work for any URL of the :// format that has an authority component, such as a `https`, `irc` or `ws` URL.