Links in Service Portal

cindylove
Kilo Guru

Are there any good references for how to set up page links in Service Portal?

I am using an icon link to link to a knowledge base article. The link I am using works fine, but I'm having a hard time going back a page after the article opens.

This is the link I'm using - /kb_view.do?sys_kb_id=sysid     This link setup worked fine in a CMS portal, but not so great in Service Portal.

Is there a better way of setting this up?

I also need to make a direct link from an icon link on my homepage to a record producer that creates an incident.

1 ACCEPTED SOLUTION

Domenic Horner
Tera Expert

Hey,



Firstly, in SP if you like to the old UI Pages (kb_view,etc) they will not render within the SP. You should be able to use the kb_article page within the Service Portal:


/sp?id=kb_article&sys_id=435186b5474321009db4b5b08b9a7160



When you're using the "Icon Link" (for example on the homepage), you can simply set the instance's "Target" JSON setting, along with the "URL" type:


find_real_file.png



This will make your link open in a new browser tab and link directly into the Service Portal's Knowledge Page.


View solution in original post

7 REPLIES 7

antin_s
ServiceNow Employee
ServiceNow Employee

Hy Cynthia,



Please check if the below helps.



ServicePortal External Links



Hope this helps. Mark the answer as correct/helpful based on impact.



Thanks


Antin


This isn't quite what I'm trying to do, but thanks...


Do you have access to the underlying HTML markup?   If so, you can make the link open up in another tab or browser window.   That makes it easy to return to the previous page/record/etc.



Just add an attribute of target="_blank" to the link's markup.


Here's an example of the HTML link from a KB article where I use the technique to link to an external page:



<a title="Json Formatter" href="http://chris.photobooks.com/json/" target="_blank">Json Formatter</a>


Domenic Horner
Tera Expert

Hey,



Firstly, in SP if you like to the old UI Pages (kb_view,etc) they will not render within the SP. You should be able to use the kb_article page within the Service Portal:


/sp?id=kb_article&sys_id=435186b5474321009db4b5b08b9a7160



When you're using the "Icon Link" (for example on the homepage), you can simply set the instance's "Target" JSON setting, along with the "URL" type:


find_real_file.png



This will make your link open in a new browser tab and link directly into the Service Portal's Knowledge Page.