Fix logout redirection

This commit is contained in:
Peter Maquiran
2021-08-16 13:46:32 +01:00
parent 1b47caa881
commit 82615751fd
3 changed files with 7 additions and 14 deletions
@@ -116,10 +116,9 @@ export class ProfileComponent implements OnInit {
// clear local storage
window.localStorage.clear();
setTimeout(()=>{
window.location.pathname = '/'
location.reload();
}, 1000)
setTimeout(()=> {
this.router.navigateByUrl('/', { replaceUrl: true });
},100)
}