
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2023 09:45 AM
HI Team,
I am trying to redirect to a URL using UI Action for eg. action.RedirectURL('xyz.com');
Its giving message on center of page as "refused to connect." But when I open the URL from browser I am able to see the login page.
Can you assist, how to get rid of this error?
BR,
Ankur
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2023 01:39 AM
Its not working.I am getting below error in the logs:
com.glide.script.RhinoEcmaError: "window" is not defined.
sys_ui_action.408457c0db55e910ec203ec8f4961905.script : Line(17) column(0)
14:
15: var url = 'https://' + gs.getProperty('it.glue.com') + '/' + current.u_global_id;
16: gs.info(url);
==> 17: window.open(url, '_blank');
This is server side code, does "window" command work in server side?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2023 01:42 AM
Hi @Community Alums,
Please find the below KB.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0721369
I hope this helps!
Regards,
Hemant
**If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
**

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2023 01:48 AM
Thaks its resolved...by writing this code:
var url = 'https://' + gs.getProperty('it.glue.com') + '/' + current.u_global_id;
action.setRedirectURL(url);
That is first I set it in URL later I do redirect.. That was the issue I guess.