action.setRedirectURL(url);-
if you want to redirect a user to a Specific URL or page use this syntax to define the redirect link:
action.setRedirectURL('https://www.workingcode.in/developer-forum/');
Use of action.setRedirectURL() in ui action ServiceNow?
Expert Asked question July 18, 2023