Prevent clickable image in knowledge article

Matt Lodge
Tera Expert

I have an image in a knowledge article that has a hyperlink attached to it. When I click on the image the image opens up and then the link takes me to the new page,

How do I stop the image opening and just the url activating?

1 ACCEPTED SOLUTION

Seems like the ask is that when the image has an associated link, then dont show the image viewer, but redirect to the link.

I will pass the feedback to my Product team. 

View solution in original post

21 REPLIES 21

@Phillip26s: Thank you for the response. I tried using style="pointer-events: none;" before posting and it doesn't seem to work. The image no longer pops up, but the link/anchor gets stripped out. This solution creates a different problem.

Grace Bedford
Kilo Contributor

Does the following work?

  1. Paste the desired picture into the body of the article
  2. Highlight the picture
  3. Click Insert/edit link
  4. In the Insert/Modify Link window:
    • Type =URL
    • URL = <desired link>
    • Target = New window (_blank)

Stephanie Brant
Kilo Contributor

I finally found the answer about how to prevent the pop-image.

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0999611

 

This works; however, when I try to add a link to the image, pointer-events: none disables the hyperlink. This should be standard functionality.

Alexander17
Tera Guru

Hi, did anyone find the solution. The pointer-events: none style part only limit the area where the hyper link in the picture is visible. With otherwords, the picture itself is not whole clickable anymore.. and a small horizontal in the middle of the picture. @Servicenow, is there any fix for this issue in the pipeline?