Remove the framework specific authority from the url on a toExternalForm as otherwise its going to override the host and port info (FELIX-1973).