diff --git a/ui-ngx/src/app/shared/components/dialog/entity-limit-exceeded-dialog.component.ts b/ui-ngx/src/app/shared/components/dialog/entity-limit-exceeded-dialog.component.ts index 7efabb0fcb..ce6491071e 100644 --- a/ui-ngx/src/app/shared/components/dialog/entity-limit-exceeded-dialog.component.ts +++ b/ui-ngx/src/app/shared/components/dialog/entity-limit-exceeded-dialog.component.ts @@ -24,7 +24,6 @@ import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; import { TranslateService } from '@ngx-translate/core'; import { DialogService } from '@core/services/dialog.service'; import { AuthService } from '@core/auth/auth.service'; -import { TenantService } from '@core/http/tenant.service'; import { getCurrentAuthUser } from '@core/auth/auth.selectors'; import { NotificationService } from '@core/http/notification.service'; @@ -51,7 +50,6 @@ export class EntityLimitExceededDialogComponent extends DialogComponent { - this.authService.redirectUrl = `/tenantProfiles/${tenant.tenantProfileId.id}`; - this.authService.logout(); - } - ); + this.authService.redirectUrl = `/tenants/${getCurrentAuthUser(this.store).tenantId}`; + this.authService.logout(); } }