In the browser, if I enter the URL:
localhost: 8100 / # / home
the system will redirect to
localhost: 8100 / # / signin
if the user is not logged in.
The problem is that using ionViewCanEnter, before running setRoot()
ionViewCanEnter() {
if (this.authProvider.verifyAuthentication() == false) {
this.navCtrl.setRoot('signin');
}
},
the HomePage is quickly appearing.
I need a way for when the user accesses
localhost: 8100 / # / home
through the URL of the Browser, redirect to
localhost: 8100 / # / signin
without quickly displaying HomePage.