Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Need to open KB articles in new tab in portal when clicked

Siva55
Tera Contributor

Hi,I have a requirement like there is widget in which the kb articles were displayed and when I click on any kb article it should open in new tab.For now it was opening in the same tab.

Any suggestions would be helpful.Thanks inadvance!!

1 REPLY 1

jMarshal
Mega Sage

In the KB Article, edit the link to open in a new window (_blank)

jMarshal_0-1689781006953.png


Then, edit the HTML code to configure to open in a new tab, instead of a new window by adding "noreferrer"

<a href="http://www.link.com" target="_blank" rel="noopener noreferrer">Text in KB article.</a> 

jMarshal_1-1689781139645.png

 

jMarshal_2-1689781333556.png