Browse Source

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

github-services/pull/3303/head
Federico Maccaroni 2 years ago
parent
commit
cb76755973
No known key found for this signature in database
GPG Key ID: 5D233F8F2B034536
  1. 2
      src/Core/Services/ApiService.cs

2
src/Core/Services/ApiService.cs

@ -58,7 +58,7 @@ namespace Bit.Core.Services @@ -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";

Loading…
Cancel
Save