redirect user to login when session expired

This commit is contained in:
EQUILIBRIUM\hirondino.van-dunem
2022-06-10 14:52:05 +01:00
parent 64a27f0bb1
commit 6895b58930
3 changed files with 14 additions and 6 deletions
+6 -1
View File
@@ -118,7 +118,12 @@ export class HomePage implements OnInit {
const pathname = window.location.pathname
SessionStore.setUrlBeforeInactivity(pathname)
this.router.navigate(['/inactivity']);
if (this.platform.is('mobileweb')) {
this.router.navigate(['/inactivity']);
}else{
this.router.navigate(['/']);
}
}
}