diff --git a/app/src/app/app-routing.module.ts b/app/src/app/app-routing.module.ts index ff05e639..e55d31c8 100644 --- a/app/src/app/app-routing.module.ts +++ b/app/src/app/app-routing.module.ts @@ -25,7 +25,7 @@ const routes: Routes = [ }, "children": [ { - "path": "home", + "path": "", "data": { "breadcrumb": "welcome" }, diff --git a/app/src/app/app.component.ts b/app/src/app/app.component.ts index 23ad26dc..f7c55e24 100644 --- a/app/src/app/app.component.ts +++ b/app/src/app/app.component.ts @@ -42,12 +42,7 @@ export class AppComponent implements AfterViewInit { }); } else if (e instanceof NavigationEnd) { const authSubscription = this.authenticationService.getSession().subscribe({ - next: (res) => { - this.checkStatus(); - if (this.router.url === '/') { - this.configService.redirectToLanding(); - } - }, + next: (res) => { this.checkStatus(); }, complete: () => { authSubscription.unsubscribe(); } }); } @@ -102,7 +97,7 @@ export class AppComponent implements AfterViewInit { const logoutSubscription = this.authenticationService.logout().subscribe({ complete: () => { this.sidebarService.opened = false; - this.router.navigate(['home']); + this.router.navigate(['']); logoutSubscription.unsubscribe(); } }); diff --git a/app/src/app/components/header/header.component.html b/app/src/app/components/header/header.component.html index 9464a527..b33d8f56 100644 --- a/app/src/app/components/header/header.component.html +++ b/app/src/app/components/header/header.component.html @@ -1,7 +1,7 @@
-

ATT&CK Workbench v{{app_version}}

+

ATT&CK Workbench v{{app_version}}