It looks like you can call the open( URL ) method of the Window object to open another URL in the same or a new browser window to achieve redirection to an external site.
Alternatively, you can set the exit URL for the application by calling application.setExitUrl() , and then close the application by calling application.close() - your application session will be closed and the browser will be redirected to the specified address.
source share