action.setRedirectURL in Client Scripts.

Stewe Lundin
Mega Guru

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. 

 

 

14 REPLIES 14

Stewe Lundin
Mega Guru

Well!

Some time you just sholud continue digging instead of giving up and go to the Community 
window.location = url

 

Fixed it 🙂

Harish Ragz
Kilo Guru

Tushar Sharma2
Kilo Guru

Any error you are getting?

Could you please share screenshot of UI action.

 

Regards,

Tushar

Upender Kumar
Mega Sage

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