How to configure an exit URL after closing your Thinfinity VirtualUI app

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.

 

Configure an exit URL after closing your Thinfinity VirtualUI app, step 01

 

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:

 

Configure an exit URL after closing your Thinfinity VirtualUI app, step 02

 

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:

 

Configure an exit URL after closing your Thinfinity VirtualUI app, step 03

 

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.

 

Have any questions?

Book a call today to learn more about how Thinfinity can help your organization. We are always available to guide you and provide the best solution based on your specific needs.

Recent posts

Leave a comment

Privacy Preferences
When you visit our website, it may store information through your browser from specific services, usually in form of cookies. Here you can change your privacy preferences. Please note that blocking some types of cookies may impact your experience on our website and the services we offer.