Log detaials if send to portal fails

 - Improve the code for error handling.
Fix Iframe does not load[#82203846]

 - Just specifying // and let the browser fill in http or https
 (protocol relative URL).