fixed routing on login logout
This commit is contained in:
parent
c40c3436cd
commit
e59531b95d
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -94,6 +94,8 @@ export class TokenService {
|
|||
}
|
||||
|
||||
this.setProvider(null);
|
||||
|
||||
window.location.reload();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue