Adding <base target="_blank"> to Knowledge Articles Not being Saved

matthorn
Kilo Explorer

I am trying to configure a knowledge article to have all the links in the article open in a new window.  Something changed recently in Chrome that is causing links in our Knowledge articles to open in a new tab instead of a new window which is why I'm seeking a solution to default all the links in certain articles to open in a new window.  In some knowledge articles we have hundreds of links so manually going into the properties for every link and setting the target from none to New Window is too time consuming.  I would also prefer a simple way to make this change on a specific article.  

I found this thread from 3 years ago which appears to be the solution but I'm having a problem getting the code change to save.  

https://community.servicenow.com/community?id=community_question&sys_id=93629b61db101fc01dcaf3231f9619f1

When I open the knowledge article I want to edit, I click the source code button and insert the following line to the top of the article. This is the very first line in the HTML code and I'm not making any other changes to existing lines.

<p><base target="_blank"></p>

I then click OK to save the change and go back into the source code again to confirm but the line is replaced with the following. 

<p>&nbsp;</p>

At first I thought it was the HTML Sanitizer causing the problem so I disabled it by setting the system properties for glide.html.sanitize_all_fields and glide.translated_html.sanitize_all_fields to false for testing and it still does the same thing. 

We are on Jakarta Patch 3.  

Thanks in advance for any help the community can provide. 

Matt

7 REPLIES 7

I have also tried but it's not working. Seems like something broken in recent upgrades. I have seen other threads as well where people facing issues even with style attribute. I would suggest raise an issue with HI Support.

Thanks for confirming.  I'll open a ticket with HI and post back the results.  

matthorn
Kilo Explorer

Thanks for the suggestion Gurpreet. I didn't try doing the whitelist.  I just disabled the HTML Sanitizer using the system property in my sub production instance.  Is there any reason I would still need to do the whitelist entries if I already disabled HTML Sanitizer?