diff --git a/lib/utils/url_launcher.dart b/lib/utils/url_launcher.dart index df3c040a..2553926d 100644 --- a/lib/utils/url_launcher.dart +++ b/lib/utils/url_launcher.dart @@ -84,7 +84,9 @@ class UrlLauncher { ? 'xn--$hostPartPunycode' : hostPart; }).join('.'); - launchUrlString(uri.replace(host: newHost).toString()); + // Force LaunchMode.externalApplication, otherwise url_launcher will default + // to opening links in a webview on mobile platforms. + launchUrlString(uri.replace(host: newHost).toString(), mode: LaunchMode.externalApplication); } void openMatrixToUrl() async {