From cb767559738fd30e4ce1f0f9724e8110c2eacc8e Mon Sep 17 00:00:00 2001 From: Federico Maccaroni Date: Wed, 19 Jun 2024 09:29:16 -0300 Subject: [PATCH] PM-9020 Fix SetUrls in ApiService to only add the suffix on SelfHosted regions --- src/Core/Services/ApiService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Services/ApiService.cs b/src/Core/Services/ApiService.cs index 242f40ff5..4c3622e48 100644 --- a/src/Core/Services/ApiService.cs +++ b/src/Core/Services/ApiService.cs @@ -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";