Browse Source

remove home page redirection from logout method

pull/7651/head
Mehmet Erim 6 years ago
committed by GitHub
parent
commit
962fe18f6b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      npm/ng-packs/packages/theme-basic/src/lib/components/nav-items/current-user.component.ts

6
npm/ng-packs/packages/theme-basic/src/lib/components/nav-items/current-user.component.ts

@ -70,9 +70,7 @@ export class CurrentUserComponent {
this.authService.initLogin(); this.authService.initLogin();
} }
logout() { logout() {
this.authService.logout().subscribe(() => { this.authService.logout().subscribe();
this.router.navigate(['/'], { state: { redirectUrl: this.router.url } });
});
} }
} }

Loading…
Cancel
Save