Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Portal rename redirects knowledge article to homepage

Ayushsnow
Tera Contributor

Hi ,

last week we renamed the portal . Now the knowledge article links are getting redirected to homepage. 

6 REPLIES 6

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Ayushsnow 

 

Where you did make change in portal name? Is in SP or KB? share some screen shot please. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

HI @Dr Atul G- LNG ,

I changed the title of the portal from sp_portal record. The issue we are facing is when users are going to the 'instance.service-now.com/previousportal=sys_kb-id=...' they are being redirect to homepage, I tried using UI script but the limitation in that is- I'm asking them to update the bookmark, instead I want them to automatically redirect to newportal. I'm not sure how I can alter this code or what's the other way to do it.

Posting the steps I followed to create UI script:-

1. creating a UI script record in global scope with previous portal name 2. in the XML is wrote a heading <h1> we have moved from /previousportalname to /newportalname ,please update bookmark 3. in script I wrote window.location.href='/newportalname'.

It would be really helpful If you can guide me how can I achieve this.

 

Thanks,

Ayush

Hi @Ayushsnow 

 

So if i understood correctly, you want to ask user to update the Bookmark right? Better to use the portal announcements. 

 

AGLearnNGrow_0-1719856124707.png

 

AGLearnNGrow_1-1719856163052.png

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

No, what i want is if users open knowledge article accessing link of previous portal they should be automatically redirect to new portal knowledge article (or whatever page they are opening)

What I meant previously is, as a fix I was trying to give them option to update bookmark, but leads have dropped this solution and asked me to do this from SNOW end