From 66af9ee16d5b61bb707f359b750b25f2faff306c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 5 Aug 2016 18:05:27 +0200 Subject: Client: Redirect user to home page after logout --- client/src/app/app.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index b7a3d7c58..5764f24ca 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts @@ -47,6 +47,8 @@ export class AppComponent { logout() { this.authService.logout(); + // Redirect to home page + this.router.navigate(['/videos/list']); } makeFriends() { -- cgit v1.2.3