Redirect a url

Rosy14
Tera Guru

Hi,

 

How can i redirect a specific url whenever it is opened?

15 REPLIES 15

I don't think that would be possible. If it were to be possible, which Table or condition would you expect it to be at ? Only redirections (the way you are describing ) possible that i am aware of is portal redirections.
The screenshot you have is downloading a calendar in the browser. what is the expectation ? As soon as you click on download the new tab that has opened should be closed?

Warm Regards,

Shivambi

 

Rosy14_0-1707817038973.png

 

here after clicking it goes to another tab and downloading that. I want to close/redirect that one after that say 3 or 5 sec automatically

@Rosy14  , In the Widget add the Following Code in Client Control and Test 

 var hosturl = 'https://' xyz.service-now.com
            $window.location.href = hosturl + "/sp?id=sc_home";
}

 

Regards,

Shyamkumar

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

shyamkumar VK
Kilo Patron

@Rosy14  , Can you please Elaborate  your Ask 

 

Is it From Notification 

or if you want to Redirect to some URL from UI Action , you need to use following code in the Script 

 

var URL = 'www.google.com';
action.setRedirectURL(URL);

 

Regards,

Shyamkumar

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

I want to do it globally. whenevere it goes to url by any way.