Added code to derive portalPath/baseURL from HttpRequest when the server_url property is not configured