Change URL for knowledge articles on portal

alexm3
Kilo Expert

Hello,

I would like to know how to change the url of the knowledge articles on the service portal, currently the links look like this:

https://instance.service-now.com/sp?id=kb_article&sys_id=1b9d69bddbb13300b0716f77489619f3 

And I would like to change it to look something like this:

https://<instance>.service-now.com/kb_view.do?sysparm_article=KB0000000

Is this possible? And if yes, how? 

Thank you,

Alex

5 REPLIES 5

Allen Andreas
Administrator
Administrator

So....you basically want to route them to the back-end view of the Knowledge Article and not on the portal?

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi Allen,

No, I want to keep them on the portal. I just want the link to contain the KB number instead of the Kb sys id

So instead of &sys_id=1b9d69bddbb13300b0716f77489619f3  to have sysparm_article=KB0000000 

I am able to get that without any changes, so that works OOB. You just have to update the widget so that it redirects users to an url using this KB number

find_real_file.png

michal29
Mega Guru

Hello,

If anyone still need a solution in NewYork for the change of Knowledge article on Service Portal,

Where the permalinks were :

https://instance.service-now.com/hrportal?id=kb_article&number=KBXXXXXX

And that stopped working, but another one :

https://instance.service-now.com/hrportal?id=kb_article&sys_id=01994444444340919e7aaaaaa55555

is working.

 

The fix is to do a little change in the widget responsible for displaying articles: Knowledge Article Content

In the line of populateParameters you need to change the line:

data.params.sysparm_article = $sp.getParameter('sysparm_article') -> into ->

data.params.sysparm_article = $sp.getParameter('sysparm_article') || $sp.getParameter('number');

 

Regards,