Attempted to fix a bug where the port number was added twice to the URLs.