RED-6558, fixed download notifications redirect.

This commit is contained in:
George 2023-04-20 18:23:44 +03:00
parent 7e4e51f82c
commit 77a84882cc

View File

@ -43,7 +43,9 @@ export class TenantsService {
if (tenant) {
this.#logger.info('[TENANTS] Tenant from route: ', tenant);
if (await this.selectTenant(tenant)) {
await this.#router.navigate([tenant]);
const intendedPath = window.location.pathname.replace(this.#baseHref, '');
await this.#router.navigate([tenant], { skipLocationChange: true });
await this.#router.navigateByUrl(intendedPath);
}
return;
}