This needs to be called on the current request object, that's where it gets the scheme, domain, and port to build the URL.