diff --git a/app/lib/methods/helpers/openLink.ts b/app/lib/methods/helpers/openLink.ts index 156a360c7..217c54d72 100644 --- a/app/lib/methods/helpers/openLink.ts +++ b/app/lib/methods/helpers/openLink.ts @@ -44,9 +44,9 @@ const addProtocol = (url: string): string => { }; const openLink = async (url: string, theme: TSupportedThemes = 'light'): Promise => { + url = addProtocol(url); try { const browser = UserPreferences.getString(DEFAULT_BROWSER_KEY); - url = addProtocol(url); if (browser === 'inApp') { await WebBrowser.openBrowserAsync(url, { toolbarColor: themes[theme].headerBackground,