How to open a Knowledge Article in a Portal Page in a new window at specific location (anchor).

Lon Landry2
Tera Contributor

Howdy Community,

I can open a Knowledge Article in a new window via ServiceNow URL field (Link button).

find_real_file.png

https://XXXXX.service-now.com/kb_view.do?sysparm_article=KB0511177 #ph

Permalink                                                                                                     Anchor

But the knowledge article opens outside of the portal.

find_real_file.png

Does anyone know how to open the article at an anchor; staying inside of a branded portal?

1 ACCEPTED SOLUTION

"/pgdg?id=kb_article&sys_id=sys_id of article"

 

//here you can get the sys_id of record by opening the knowledge table. In the search enter article number in the number field and press enter. Now right click on the article and click on copy sys_id. Recplace the"sys_id of article" with this value.

View solution in original post

9 REPLIES 9

Abhijeet Upadhy
Tera Expert

Hello Lon Landry

Pass the url as "/sp?id=kb_article&sys_id=sys_id of article"

 

if you want to use an anchor tag. Use this:

<a href="/sp?id=kb_article&sys_id=sys_id of article" target="_blank">Knowledge Article</a>

 

Thanks

Abhijeet Upadhyay

If my Service Portal is pgdg.

would this be the correct syntax?

/sp?pgdg=kb_view.do%3Fsysparm_article%3DKB0511177%20#ph

 

Thanks for your time,

Lon

"/pgdg?id=kb_article&sys_id=sys_id of article"

 

//here you can get the sys_id of record by opening the knowledge table. In the search enter article number in the number field and press enter. Now right click on the article and click on copy sys_id. Recplace the"sys_id of article" with this value.

I was able to open the article in the portal using the syntax you suggested.

But I cannot get the page to open at the anchor.

Anchor example: <a name="us"></a>

Link: #us

 

Do I need an anchor that contains the KB article & system ID?