Working around for paste link issue: Is it possible to search for an html attribute in all articles?

amarks
Tera Expert

When we type a URL into the KB article resolution, we don't have an issue.

 

If we paste a URL into the KB article resolution, the link tries to open internally (in the same window) and won't display.  The manually work around is to edit the article link and change the target to "New Window."  The solution is essentially to ensure that the link has the <a> reference to target="blank" (which is the function that editing the link using the drop-down does. However, we need to identify the articles in our knowledgebase that contain links without this attribute.

 

Is there a way to search all the articles in the KB for links that are missing this html attribute?

 

Thanks,

Adam

 

 

The challenge is that we have an unidentified number of articles that have

1 ACCEPTED SOLUTION

Brad Bowman
Kilo Patron
Kilo Patron

You can add the Article Body to a list view of the kb_knowledge table, then filter on something like Article Body contains href AND Article Body does not contain target="_blank". This won't show you the articles with more than one link where one has this and the other(s) do not.

View solution in original post

5 REPLIES 5

Brad, I stand corrected and your suggestion is absolutely helpful. I'm new to SN, so I'm thinking about dropping the contents into a file and using grep to pull the data out, unless you can offer a better way.

Thanks again