From cc58f7730e391b56cb9d7fcc910126d50e7453db Mon Sep 17 00:00:00 2001 From: BestPig Date: Mon, 20 Aug 2018 19:32:16 +0200 Subject: [PATCH] Use BaseUrl when opening web vault if defined (#360) --- src/App/Pages/Tools/ToolsPage.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/App/Pages/Tools/ToolsPage.cs b/src/App/Pages/Tools/ToolsPage.cs index 8174568d2..3d21e48e7 100644 --- a/src/App/Pages/Tools/ToolsPage.cs +++ b/src/App/Pages/Tools/ToolsPage.cs @@ -158,7 +158,15 @@ namespace Bit.App.Pages private void WebCell_Tapped(object sender, EventArgs e) { _googleAnalyticsService.TrackAppEvent("OpenedTool", "Web"); - Device.OpenUri(new Uri("https://vault.bitwarden.com")); + var appSettings = Resolver.Resolve(); + if (!string.IsNullOrWhiteSpace(appSettings.BaseUrl)) + { + Device.OpenUri(new Uri(appSettings.BaseUrl)); + } + else + { + Device.OpenUri(new Uri("https://vault.bitwarden.com")); + } } private void ShareCell_Tapped(object sender, EventArgs e)