what causes knowledge articles to have broken links to images

margrit
Kilo Explorer

What is causing some images to have a broken link to an image or snapshot?

find_real_file.png

6 REPLIES 6

Hi Kim, the images on the article are now fixed. Please confirm.

Searching with attachment name on the knowledge homepage or service portal does not show all the mat...

 

James OBrien
Tera Expert

Hi margrit and everyone else reading this,

Here's what I've found.  The images appear fine when I paste an image into an article.  The minute I open it up with the TinyMCE editor Insert Image edit function to modify parameters, it removes the forward slash '/' prior to "/sys_attachment.  You have to go into the article's html code and add the forward slash back in.

Here's the code from an image I pasted into an article and before I edited any parameters with Insert Image.  You'll see the forward slash before "sys_attachment.  I'm using the TinyMCE editor source code feature to view it.

<p><img src="/sys_attachment.do?sys_id=ee5af7c3db9c249069860715ca961977" /></p>

I do not have any issues viewing the image from within ServiceNow or from a web portal we created to view 'Public facing' articles with this code.

When I edit a parameter like adding a simple border, the TinyMCE editor removes the forward slash.  Here's a copy of the new code after adding the border.  You'll see the slash is missing in front of "sys_attachment.

<p><img style="border: 1px solid black; align: baseline;" src="sys_attachment.do?sys_id=ee5af7c3db9c249069860715ca961977" width="545" height="158" align="baseline" border="1" /></p>

I'm unable to view the image using the portal.  I can see the image again after adding the forward slash to sys_attachment.

If my answer helped you in any way, please then mark it as helpful/correct.
Kind regards,

James