Internal URLs are links that open within your desktop app window instead of an external browser window i.e. Chrome, Safari, Firefox etc.
By default, login provider URLs (also known as OAuth) and URLs on the same domain as your app are considered internal.
Here is an example of some links considered internal and external if your web app is
You can add more internal URLs if needed.
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.
For example, if your app is
https://www.icecream.com and you want to include the domains of
amazon.com as internal, this is how the regex input would look:
Configuring this correctly can be tricky so if you have any trouble please get in touch and we will help you out.
Sometimes it may be neccesary to dynamically change internal URLs. You can use our runtime API to do this. To get current internal URLs you can use
window.todesktop.app.getInternalUrls(). To update internal URLs you can use
await window.todesktop.app.getInternalUrls();// -> ".*(apple.com|amazon.com).*"// Let's add google.com as an internal URLconst newInternalUrls = ".*(apple.com|amazon.com|google.com).*";await window.todesktop.app.updateInternalUrls(newInternalUrls);await window.todesktop.app.getInternalUrls();// -> ".*(apple.com|amazon.com|google.com).*"