This widget could not be displayed.
This widget could not be displayed.

Link in the annotation

vidhya_mouli
Tera Sage

Link in the annotation

<a href="/esc?id=kb_article&sysparm_article=KB0010066" target="_blank">Incident Escalation and Severity Matrix</a>

I used the above code in a annotation to open the link to an article. It opens in the same page (ITIl user uses this in Workspace). Why? How can I make it open in a new tab instead?

5 REPLIES 5

Dr Atul G- LNG
Tera Patron

Hi @vidhya_mouli 

 

https://www.servicenow.com/community/developer-forum/would-like-a-url-in-workspace-to-open-in-a-new-...

https://www.servicenow.com/community/developer-forum/open-new-window-in-agent-workspace/m-p/1422575

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Thank you for sharing. But this requires UI Action. I want to do it through annotation.  

Did you try with @kalanidhikr solution

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

kalanidhikr
Tera Expert

Hello @vidhya_mouli ,

 

Replace  the link with this 

var str = '<a href="//' + instance + '/esc?id=kb_article&sysparm_article=KB0010066" target="_blank" rel="noreferrer noopener">Incident Escalation and Severity Matrix</a>';

If my response helped mark as helpful and accept the solution