How do we redirect users to the latest version of a KB article ?

Mike S3
Giga Expert

We have a requirement where users should only be able to see the latest version of a kb article that they are trying to access .  If users use the permalink then they are able to see the latest version , but we have issues where users are bookmarking pages etc and when they try accessing the page they are being presented with the old version of the kb articles . 

Does anyone have any experiencing forcing a redirect on page load to the latest version of the KB article ? 

 

 

3 REPLIES 3

Aman Kumar S
Kilo Patron

There are two ways to achieve this:
1. Customize the article view (kb_view) page to issue a redirect to the latest version, if available. This can be checked by querying the kb_knowledge table with the article number, and check the version field of the records returned to find out the latest version. 

However, if the link is pointing to the 'kb_knowledge' form instead of the article view page, then set up redirection to the latest version with the help of Processors (Please refer to this community article, answered by 'LucasVieites' 
https://community.servicenow.com/community?id=community_question&sys_id=b48ff2e9db58dbc01dcaf3231f96... 

2. Solve this at the source, i.e. when a new version of an article is created/published, have a custom business rule to find out if this article is linked to in any custom application. If yes, then go ahead and update the references to the newly created article version record. 

 

Ref article:

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0727046

Best Regards
Aman Kumar

DrewW
Mega Sage
Mega Sage

In addition to what Aman suggested you could also add an ACL to the table so someone who is not a KB admin cannot read the retired records.  This should force a KBA not found message and cause the user to go looking for it.

 

Aman Kumar S
Kilo Patron

Hey,

Can you confirm, if your issue was resolved?

If yes, please mark correct and close the thread, will be helpful to others 🙂

 

Best Regards
Aman Kumar