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

Compare commits

...

1 Commits

Author SHA1 Message Date
Federico Maccaroni
cb76755973 PM-9020 Fix SetUrls in ApiService to only add the suffix on SelfHosted regions 2024-06-19 09:29:16 -03:00

View File

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