From dd447c788ca5490f8101169ad55707e99c934a69 Mon Sep 17 00:00:00 2001 From: Marco Enrico Piras Date: Fri, 17 Nov 2023 19:56:43 +0100 Subject: [PATCH] fix: redirect to the root if maintenanceMode is off --- src/app/pages/maintenance/maintenance.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/pages/maintenance/maintenance.component.ts b/src/app/pages/maintenance/maintenance.component.ts index 6d95907..a026575 100644 --- a/src/app/pages/maintenance/maintenance.component.ts +++ b/src/app/pages/maintenance/maintenance.component.ts @@ -11,6 +11,9 @@ export class MaintenanceComponent implements OnInit { constructor(private appConfig: AppConfigService) { } ngOnInit(): void { + if (!this.appConfig.maintenanceMode) { + window.location.href = '/'; + } } public get maintenanceMessage(): string {