Thinfinity® VirtualUI allows you to redirect your end user to a specific exit URL once they close your application. To learn how, follow these steps.
First, you will need to locate the file app.js, which can be found in the following path: C:\Program Files\Thinfinity\VirtualUI\web\js. Next, open the file as an administrator and locate the following function.
To make this edit, you will need to delete lines 73 to 153 of the code. When you are finished, the code should look like this:
Next, delete the function virtualUI.onClose, and replace it with the following:
virtualUI.onClose = function (url, status) {
location.href = ‘https://google.com’;
};
The code should now look like this:
After making these changes, replace the URL following location.href with the desired URL, save the file, and the next time you close an app running through VirtualUI, it will redirect you to that URL.