Knowledge article redirection is incorrect.

karthikbabu
Giga Expert

Hi All,

Trouble redirecting to latest version from older version of knowledge article.

find_real_file.png

So the above is the older version and that is the reason I can see a text saying its an outdated and click on the red text to navigate to newer version. (Please remember the banner is in blue color and it changes when I click on the red link).

find_real_file.png

Now it navigated to latest version but now the banner color is changed and when you see the URL it changed from "SP" to "KB"

 

Please help how to resolve this issue.

 

Thanks,

Karthik.

1 ACCEPTED SOLUTION

karthikbabu
Giga Expert

HI All,

 

Thanks for your support. I found the issue coming from a script include "KBViewModelSNC" 

find_real_file.png

changed the url prefix here then everything works good.

 

Thanks,

Karthik

View solution in original post

4 REPLIES 4

rahulpandey
Kilo Sage
Hi Karthik, Open the page where it shows the older, ctrl+ right click on knowledge article then open in widget editor. Now in widget HTML/controller, search for that error message. It would have sys_id on new already there( because it allows you to redirect). You need to change the href link to accommodate sp instead of KB.

Hi Rahul,

 

Thanks for your response. 

I found the message but not sure where to replace sp with kb.

find_real_file.png

 

and the version warning message is in the server script:

find_real_file.png

 

Thanks,

Karthik

Hi, You need to create a new variable on server side above line 330 data.nomalPortal = 'sp'; And replace data.portalname with data.normalPortal;

karthikbabu
Giga Expert

HI All,

 

Thanks for your support. I found the issue coming from a script include "KBViewModelSNC" 

find_real_file.png

changed the url prefix here then everything works good.

 

Thanks,

Karthik