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
@@ -61,9 +61,6 @@
<span class="label">{{task.activityInstanceName}}</span>
</div>
<div class="exp-date">
{{ task.CreateDate }}
<ion-label>{{ task.CreateDate | date: 'dd-MM-yyyy HH:mm' }}</ion-label>
</div>
</div>
@@ -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)
}