UI Action setRedirect not working on external link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2018 01:26 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2018 10:15 AM
Unfortunately action.setRedirectURL does not work for external links like Google. I was able to confirm this with ServiceNow HI.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2018 08:17 PM
Hi,
You can also use following on client end:
document.location="url"
Regards,
Munender