1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-24 11:55:38 +01: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
No known key found for this signature in database
GPG Key ID: 5D233F8F2B034536

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";