Whenever I put a SIP link into an Icon Link widget URL field, ServiceNow adds 'unsafe:' in front of the URL, thus rendering this link useless.

tchaikin
Giga Expert

I'm trying to add a SIP link to an Icon Link widget on Service Portal in order to initiate a chat with our Service Desk via Skype for Business.   The URL I put in is sip:address@company.com.   When SNOW renders it on the Portal, the link comes up as unsafe:sip:address@company.com and therefore does not work.   Any ideas on how to solve this?

1 ACCEPTED SOLUTION
21 REPLIES 21

Look in the browser console for any JavaScript errors


Hi Nathan,



The code worked, Thanks a lot



Regards,


Bhavin


Hi 

I tried this, it is not working for me, i wanted this to happen because i wanted to use the portal in mobile view and want the download links to go through mobile iron so added a prefix for dev instane as mibrowsers://dev.service-now.com .

So added js_include to the theme and weird thing happens now even the desktop view shows unsafe for https url as well 

angular.module('sn.$sp').config(['$compileProvider',function( $compileProvider ){
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mibrowsers|sip|ftp|mailto):/) ;
}]);
 
please help with this 
 
 

Hi 

I tried this, it is not working for me, i wanted this to happen because i wanted to use the portal in mobile view and want the download links to go through mobile iron so added a prefix for dev instane as mibrowsers://dev.service-now.com . it works fine for redirecting to pages like sp not to the specific urls sys_attachment.do or download_all_attachments urls 

So added js_include to the theme and weird thing happens now even the desktop view shows unsafe for https url as well 

angular.module('sn.$sp').config(['$compileProvider',function( $compileProvider ){
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mibrowsers|sip|ftp|mailto):/) ;
}]);
 
please help with this 

josmad
Tera Contributor

Hi tchaikin,

could you please help me to create a widget called as "chat". when we click on this, it should connect to Skype for business and open a chat with SD. kindly suggest me to fulfill this.

Thanks in advance.