How to redirect users to Configurable HR agent workspace

kartikey
Tera Contributor

Hi everyone,

I have deactivated classic agent workspace, but few users have bookmarked it on their personal devices so when they open it via their bookmark it redirects it to a page saying 'The page you are looking for could not be found'.
Is there any way that instead they are redirected to the new configurable HR agent workspace i.e. the URL /now/workspace/hr/home is replaced with /now/hr/agent/home .

I believe UI scripts might help but i'm not sure how.

Thanks,
Kartikey

13 REPLIES 13

Hi @kartikey 

 

Where you stuck? Try in another browser once and perform browser and cache.do

*************************************************************************************************************
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]

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

basically if i try to open the old workspace , it is not redirecting, it's just opening the old one, i tried cache.do, but still it's not working

Thanks,
kartikey

Hi @kartikey 

 

I am not 100%, it can be due to wrong name or some syntax mismatch. Try the same code in PDI and see if it work.

*************************************************************************************************************
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]

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

This is the code:

kartikey_0-1734426345442.png


I hope it is automatically called when opening any page, or do i need to call it within some client script?

 

Hi mate, I think you missed code

 

AGLearnNGrow_0-1734426936065.png

 

 

I am not dev but if we follow KB then do as it.

*************************************************************************************************************
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]

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