Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

UI Action setRedirect not working on external link

tahnalos
Kilo Sage

While trying to do a action.setRedirectURL to an external link, when I run the UI action, nothing happens.  ServiceNow goes to a blank screen.

Code is as follows but I am at a loss as to understand why this is happening:

var url = 'http://www.yahoo.com';
action.setRedirectURL (url);

The Yahoo Link is just there for show and it won't go to the URL itself.  This has been set up to be a non-client UI action so I'm not sure what I'm missing.

Thanks.

21 REPLIES 21

Unfortunately action.setRedirectURL does not work for external links like Google.  I was able to confirm this with ServiceNow HI.

Munender Singh
Mega Sage

Hi,

You can also use following on client end:

document.location="url"

 

Regards,

Munender