- My View
I have used below line of code in client enabled UI Action to redirect user to catalog page but everytime user clicks on this button from list view, servicenow's left nav pane is getting lost and catalog is opening in new tab.
top.window.location.href = "/com.glideapp.servicecatalog_cat_item_view.do?v=1&sysparm_id=40c40fe6dbb90b40e3b55421cf9619e5&sysparm_selectedvm="+vmSelected;
What custom code did you write and which version is this ? J?
Thanks, aditya telidevara
We are using Jakarta version of ServiceNow and below custom line i have used in UI actions client side script
All other combinations are failing for redirectURL.(we are working on custom application)
I have used the below code in my UI Action, it is working fine.
var url = "catalog_home.do";
Don't forget to select the correct answer and close the thread.
action.setRedirectURL works in global but not in scoped application.