Skip to content

Commit

Permalink
Fixed #102
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed Jul 24, 2017
1 parent ba7fad0 commit fff4abe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class HeaderComponent implements OnInit {
<% if (props.auth) { -%>
logout() {
this.authenticationService.logout()
.subscribe(() => this.router.navigate(['/login']));
.subscribe(() => this.router.navigate(['/login'], { replaceUrl: true }));
}

<% } -%>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class LoginComponent implements OnInit {
})
.subscribe(credentials => {
log.debug(`${credentials.username} successfully logged in`);
this.router.navigate(['/']);
this.router.navigate(['/'], { replaceUrl: true });
}, error => {
log.debug(`Login error: ${error}`);
this.error = error;
Expand Down

0 comments on commit fff4abe

Please sign in to comment.