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

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.

Leave a comment

Privacy Preferences
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.