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

oharel
Kilo Sage

Hi Todd,


I think this is one of those core scripts that you cannot access: js_includes_sp.jsx, where you have the following lines:


element.on('click', function(event) {


if (!element.attr(href)) {


event.preventDefault();


}


By using F12 I can see the following:


find_real_file.png


If you edit it on the page it works, of-course.



harel


Please mark as correct or helpful based on impact


And also forgot to tell you:


Instead of sip:someone@somewhere.com


try


tel:someone@somewhere.com



I did that and it is opening Jabber - which my company uses.


I had to configure the windows default protocol, though.



harel


nathanfirth
Tera Guru

I just wrote a blog post on how to solve this:



https://serviceportal.io/avoid-unsafe-prefix-links/



tchaikin oharel


Hi Nathan,



I applied the same code which is posted by you under themes but still was not able to remove the unsafe.


below is my URL


URL : unsafe:CISCOTEL://+123



Please let me know if anything more needs to be added.



Regards,


Bhavin