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

7 REPLIES 7

Hi Vignesh,

 

I want the url to be changed from ?id=kb_article_view&sys_kb_id=9b4b9fcc3bff2a5072b466a985e45a87&kb_category=25546ec199200e102e00bdb8c253af6f     

 

to  ?id=kb_article_view&sysparm_article=KI123252

 

Thanks,

Harsha

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,

Thank you Michal this resolved my problem!