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.

Are external URLS allowed in wiki style articles?

amtvd27
Kilo Contributor

When I created an external url using these methods, none of the links open properly.

 

*[http://community.service-now.com/ testing]
* <a href="https://apple.co/4ivGgB3" target="_blank" rel="noopener noreferrer">Apple Platform Support</a>
* <a href="https://apple.co/44FwlCL" target="_blank">Apple Platform Security</a>
* <a href="https://apple.co/3GGMxeK" target="_blank">Apple Platform Deployment</a>

The issue is when a KB Article type is set to Wiki, the external URL is opening in a new tab. I think this is because the the links rendered in the article are stripped of their attributes. This part, I don’t know why. But I think this is the root cause. I checked the source code of the wiki article to verify. This is the link that I made in the editor.

<a href="https://apple.co/4ivGgB3" target="_blank" rel="noopener noreferrer">Apple Platform Support</a>​


And this is the link that is rendered after the DOM loads. Notice how the target is missing and the rel attributes I assigned are gone. I’ve told it to open in a new blank tab with the required rel attributes. But somewhere service now removes them. I'm on the xanadu-platform if this is important to know.

<a href="https://apple.co/4ivGgB3" rel="nofollow">Apple Platform Support</a>


Thanks is advance for the help. I promise this isn't spam!

0 REPLIES 0