fixed routing on login logout

This commit is contained in:
Nikolaos Laskaris 2017-11-10 17:58:34 +02:00
parent c40c3436cd
commit e59531b95d
2 changed files with 2 additions and 3 deletions

View File

@ -48,7 +48,6 @@ export class AppComponent implements OnInit {
login(){
console.log("navigating to login")
//redirect to login page
this.router.navigate(['/login'], { queryParams: { /*refresh : Math.random() ,returnUrl: this.state.url*/ }});
location.reload();
@ -56,8 +55,6 @@ export class AppComponent implements OnInit {
logout(){
this.tokenService.logout();
this.router.navigate([''], { queryParams: { /*returnUrl: this.state.url*/ }});
location.reload();
}

View File

@ -94,6 +94,8 @@ export class TokenService {
}
this.setProvider(null);
window.location.reload();
}