action.setRedirectURL in Client Scripts.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2018 04:14 AM
I have UI Action button I want to trigger
var url='/myurl.do' ;
action.setRedirectURL(url);
The UI Action triggers, but it will not load my URL
action.setRedirectURL(url); works from my UI page ClientsScript but not from the UI Action.
Is there another way to solve this.
Showing a dialog in not an option.
A new window could work, but preferable the main window.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2018 04:18 AM
Well!
Some time you just sholud continue digging instead of giving up and go to the Community
window.location = url
Fixed it 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2018 04:53 AM
Once try with this link.It may help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2018 05:27 AM
Any error you are getting?
Could you please share screenshot of UI action.
Regards,
Tushar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2018 05:55 AM
Hi,
If you want to redirect from client script use:
location.href='/yourURL';
if want to redirect from server side use:
action.setRedirectURL(url);
Thanks