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:
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user