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

my apologies, i pasted the wrong screenshot:
This is the one

kartikey_1-1734428084414.png

Anything that i'm missing?

Log a case buddy to Now Support.

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

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

Ankur Bawiskar
Tera Patron
Tera Patron

@kartikey 

use this in the UI script

if (window.location.pathname === '/now/workspace/hr/home') {
    window.location.replace('/now/hr/agent/home');
}

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar , 
not wokring:

kartikey_0-1734428020257.png

Anything that i'm missing ?