fix: DTR in not replacing placeholder from baseUrl

pull/9768/head
bnymncoskuner 4 years ago
parent b246c9daea
commit eb172909fd

@ -46,10 +46,15 @@ export async function parseTenantFromUrl(injector: Injector) {
const setEnvironmentWithDomainTenant = (tenant: FindTenantResultDto) => {
hideTenantBox();
setDomainTenant(tenant);
replaceTenantNameWithinEnvironment(injector, tenant.name);
};
if (tenancyName) {
/**
* We have to replace tenant name within the urls from environment,
* because the code below will make a http request to find information about the domain tenant.
* Before this request takes place, we need to replace placeholders aka "{0}".
*/
replaceTenantNameWithinEnvironment(injector, tenancyName);
return multiTenancyService
.setTenantByName(tenancyName)
.pipe(tap(setEnvironmentWithDomainTenant))

Loading…
Cancel
Save