1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-05 23:53:33 +00:00

PM-9020 Fix SetUrls in ApiService to only add the suffix on SelfHosted regions

This commit is contained in:
Federico Maccaroni
2024-06-19 09:29:16 -03:00
parent 9edcc8b4f7
commit cb76755973

View File

@@ -58,7 +58,7 @@ namespace Bit.Core.Services
public void SetUrls(EnvironmentUrlData urls) public void SetUrls(EnvironmentUrlData urls)
{ {
UrlsSet = true; UrlsSet = true;
if (!string.IsNullOrWhiteSpace(urls.Base)) if (urls?.Region == Enums.Region.SelfHosted && !string.IsNullOrWhiteSpace(urls.Base))
{ {
ApiBaseUrl = urls.Base + "/api"; ApiBaseUrl = urls.Base + "/api";
IdentityBaseUrl = urls.Base + "/identity"; IdentityBaseUrl = urls.Base + "/identity";