document link html code missing in SDM Knowledge
search cancel

document link html code missing in SDM Knowledge

book

Article ID: 387208

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager CA Service Desk Manager

Issue/Introduction

While creating or modifying an SDM Knowledge Article, when trying to create an html link in the article, the target parameter in the Link parameter disappears.

In prior releases of 17.4 (up to RU3), the url html code generated will read as:

<a href="http://broadcom.com" target="_blank" title="tooltip blank">test doc link</a>


In 17.4 RU3, the html code lacks the A HREF parameter for "target", ie:

<a href="http://broadcom.com" title="tooltip blank">test doc link</a>

Environment

Release:  17.4 RU3
CA Service Desk Manager

Cause

Known issue in 17.4 RU3, which will be released in 17.4 RU4.

Resolution

The above will be addressed in a forthcoming RU update, 17.4 RU4.

The following is a workaround that may be tried to restore the functionality in the interim.

1. Copy the SDM install folder's bopcfg\www\htmpl\web\analyst\detail_KD.htmpl file and place it to SDM install folder's site\mods\www\htmpl\web\analyst\detail_KD.htmpl

2. Edit site\mods\www\htmpl\web\analyst\detail_KD.htmpl with the following:

2.1 Locate string (around line 541 depending on the given installation):

f.elements['SET.RESOLUTION'].value=DOMPurify.sanitize(setResolution);


2.2 Delete the above line, then replace with this line:

f.elements['SET.RESOLUTION'].value=DOMPurify.sanitize(setResolution,{ADD_TAGS:['a'],ADD_ATTR:['href', 'onclick', 'kt_doc_custom_attr', 'crtemplate', 'isstemplate', 'crdocvalues', 'issdocvalues', 'itilcrfactory', 'linktext', 'template', 'target'],ALLOWED_URI_REGEXP: /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|xxx|javascript):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i});


See file modified-detail_kd.htmpl.zip which is attached to this KB to demonstrate the change

2.3 Save Changes

2.4 Run pdm_webcache -H

2.5 Delete cache from the browser (or use incognito window)

 

Additional Information

Please test the above in a non-prod instance before attempting in production.

If the install contains an existing detail_KD.htmpl locateed in site\mods\www\htmpl\web\analyst,  modify the existing file instead.

When applying the 17.4 RU4 update, assuming there wasn't a detail_KD.htmpl located in site\mods\www\htmpl\web\analyst initially, the above workaround file should be deleted as part of the install process.

Attachments

modified-detail_kd.htmpl.zip get_app