- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2024 12:23 AM
I changed the prefix from Employee Center (esc) to another one, but the thing here is that I need to redirect anyone that is using this prefix to the new one, I want to know a way to trigger this.
Is there a way I can do this?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2024 12:30 AM
Hi Abigail
You can create UI script for such redirections (System UI > UI script) and put following redirection script
addLoadEvent(redirect);
function redirect() {
if(document.URL.indexOf('/esc') != -1){
window.location = '/NEW_ESC'; //here replace new_esc with your new portal prefix
}
}
Regards,Sushant Malsure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2024 12:30 AM
Hi Abigail
You can create UI script for such redirections (System UI > UI script) and put following redirection script
addLoadEvent(redirect);
function redirect() {
if(document.URL.indexOf('/esc') != -1){
window.location = '/NEW_ESC'; //here replace new_esc with your new portal prefix
}
}
Regards,Sushant Malsure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2024 12:51 AM
My question is if y type for example
https://test.service-now.com/esc
Could this redirect me to my new link, using UI Script?
https://test.service-now.com/newlink
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2024 01:02 AM
Yes , have you tried the script I have provided ? you just need to change the 'NEW/ESC' to 'newlink'.
Regards,Sushant Malsure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2024 01:15 AM
Yes and it is not working.