Skip to content

Commit

Permalink
fix: redirect to the root if maintenanceMode is off
Browse files Browse the repository at this point in the history
  • Loading branch information
kikkomep committed Nov 17, 2023
1 parent 28245a1 commit dd447c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/pages/maintenance/maintenance.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit dd447c7

Please sign in to comment.