Defining Internal URLs

Your app will open external links in the user's default browser i.e. Chrome, Safari, Firefox, etc. An external link is any link not considered internal.

By default internal links are URLs on the same second-level domain as your web app. Here is an example of some links considered internal and external if your web app is https://www.icecream.com:

Internal URLs

External URLs

https://app.icecream.com

https://frozenyogurt.com

https://sundaes.icecream.com

https://accounts.google.com

https://my.icecream.com/favorites

You can customize this behaviour if needed. For example if your site uses social logins (also known as OAuth) your app will open the sign in links in the default browser. When they sign in they will be redirected back to your web app in the browser, rather than to your desktop app.

You configure your app to handle this by adding these domains as internal URLs. In your Edit app page, select the Internal URLs checkbox under App Options. Here you can add a regex (short for regular expression) of URLs to be considered internal. Here is an example regex you can use as a starting point.

Add whichever domains you want within the brackets in the expression, separated by a pipe ( | ) symbol and then copy the whole expresion and paste it into the Internal URLs field in ToDestkop.

For example if your app is https://www.icecream.com and you want to count internal all subdomains of icecream.com as well as Google, Twitter, and Github logins, this is how your regex would look:

.*(icecream.com|accounts.google.com|api.twitter.com|github.com).*

Configuring this correctly can be tricky so if you have any trouble please get in touch and we will help you out.