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.

Knowledge article URLS opening in "New Window" as "Default"

Steph15
Giga Contributor

Hi Knowledge Managers!

My question is...does anyone have code to redirect URLS/hyperlinks typed with the article body to "default" the "Target" to open in a "New Window"?  The current Default is "None" and we've had issues across different browsers and operating systems with URLS NOT opening and simply redirecting to a ServiceNow Home page!

Thanks!

Steph

find_real_file.png

14 REPLIES 14

Thanks @Aman Kumar S.  I am curious though if there is a way to set the default target for already published article to new window (_blank) without updating/republishing the article?

This doesn't work in Tokyo version.. any idea about this anyone??

Do you know of a solution to this for TinyMCE v5? 

Yousaf
Giga Sage

Hi,

Try this

var url3 = '/kb_view.do?sysparm_article=KB0010899';
g_navigation.open(url3,'_blank');



Mark Correct or Helpful if it helps.


***Mark Correct or Helpful if it helps.***

Steph15
Giga Contributor

Hello Yousaf! Thanks so much for your reply and I'll look into this with our Developers.