Question about method for opening article in Service Portal using Permalink

Andrew Truett
Tera Contributor

We use knowledge base article Permalinks frequently for generating links to include in other articles, as a way of linking to related content. Unfortunately, when the links are clicked in any article opened in the Service Portal the linked-to article does not open in the same environment as the original article. 

 

We have stumbled upon a technique that seems to resolve this issue, but I'm unsure as to its legitimacy-- not having found an explanation (so far) in the product documentation for a setting that make this work. Here's what we're doing:

 

Obtain the permalink and add it to the article. For example,

 

https://xxxitsm.service-now.com/kb_view.do?sysparm_article=KB0021186

 

Alter the link slightly by replacing "kb_view.do?" with "sp?kb_article&", yielding something like this:

 

https://xxxitsm.service-now.com/sp?id=kb_article&sysparm_article=KB0021186 

 

Is this a legitimate technique or are we likely to encounter problems using it?

 

Thank you.

 

2 REPLIES 2

Todd Goodhew
Tera Expert

You should be fine long term.  That is a common solution.
When in doubt follow the format of the URL that Copy Permalink gets you as well via the Service Portal.

 

Mike Van Vooren
Mega Guru

Andrew, there are many different places you can view an article in ServiceNow.  Each of those places have a specific link structure and a "permalink" you can use when linking.  You can view an article from the Platform view (/kb_view.do), Service Portal (/sp) Knowledge Portal (/kb) as examples.  If you want everyone to always go to the Service Portal view of the article, you always want to make sure the URL structure includes the /sp view.  You should be able to see the "Copy Permalink" at the bottom of an article no matter what environment you are in.  As Todd said in an earlier comment, just be consistent in the links you use to make sure you get people to the right view.