diff --git a/lib/desktop_screens/desktop_welcome_screen/desktop_welcome_screen.dart b/lib/desktop_screens/desktop_welcome_screen/desktop_welcome_screen.dart index 369437c4..8fb3d2fd 100644 --- a/lib/desktop_screens/desktop_welcome_screen/desktop_welcome_screen.dart +++ b/lib/desktop_screens/desktop_welcome_screen/desktop_welcome_screen.dart @@ -623,13 +623,14 @@ class SideBarIcon extends StatelessWidget { } Future _launchInBrowser(String url) async { - if (await canLaunchUrl(Uri(path: url))) { + try { await launchUrl( - Uri(path: url), - // forceSafariVC: false, - // forceWebView: false, + Uri( + scheme: 'https', + path: url, + ), ); - } else { + } catch (e) { throw 'Could not launch $url'; } } diff --git a/lib/utils/constants.dart b/lib/utils/constants.dart index f2f88260..775cb475 100644 --- a/lib/utils/constants.dart +++ b/lib/utils/constants.dart @@ -15,13 +15,13 @@ class MixedConstants { static const int ROOT_PORT = 64; - static const String TERMS_CONDITIONS = 'https://atsign.com/terms-conditions/'; + static const String TERMS_CONDITIONS = 'atsign.com/terms-conditions/'; static const String FILEBIN_URL = 'https://ck6agzxiog6kmb.atsign.com/'; // static const String PRIVACY_POLICY = 'https://atsign.com/privacy-policy/'; static const String PRIVACY_POLICY = "https://atsign.com/apps/atmosphere/atmosphere-privacy/"; - static const String FAQ = "https://atsign.com/faqs/"; + static const String FAQ = "atsign.com/faqs/"; static const MACOS_STORE_LINK = 'https://apps.apple.com/app/id1550936444';