Notifications

39 views

Description

Permalink KB URLs without the 'sys_kb_id' will internally redirect by adding the 'sys_kb_id' to the URL.

 

Steps to Reproduce:

1. Log into OOB instance (demonightnewyork or demonightlyorlando)
2. Go to /sp and click on Knowledge Base
3. Open any KB Article and click on 'Copy Permalink'
4. On the URL address bar and paste the URL copied above and hit enter
5. Notice that the URL gets changed by adding 'sys_kb_id' of the KB Article.
6. Click on Back button and it won't work and lands to the same (due to internal redirect)
7. Double click Back button and it goes to the previous page

 

 

Resolution

On validating in OOB this looks to be an expected Platform behaviour.


The 'kb_article' or 'kb_article_view' page redirects the page when the URL is in this format 'https://<instance_name>/<portal>?id=kb_article_view&sysparm_acrticle=KB_NUMBER'.
It does a internal redirect by adding the sys_kb_id of the KB_ARTICLE_NO , like to the URL below:
'https://<instance_name>/<portal>?id=kb_article_view&sysparm_acrticle=KB_NUMBER&sys_kb_id=SYS_ID'

Hence, when you click Back button it goes back to the page 'https://<instance_name>/<portal>?id=kb_article_view&sysparm_acrticle=KB_NUMBER' and then redirects back to here 'https://<instance_name>/<portal>?id=kb_article_view&sysparm_acrticle=KB_NUMBER&sys_kb_id=SYS_ID'.
If you double click Back button, you may notice that you will be landed to previous page properly.

However, if you would like to overcome this behaviour you would need to change the URL to the below format:
'https://<instance_name>/<portal>?id=kb_article_view&sys_kb_id=SYS_ID_KB'
Ex: https://<instance_name>/<portal>id=kb_article_view&sys_kb_id=e1e512131b6f48d0255f982d0d4bcb5c

Article Information

Last Updated:2020-05-05 17:55:30
Published:2020-05-06