I have a Slides Page consisting of 5 Slides. On the 5th Slide I have my "Login Page". Whenever I logout from the Application, I want to be redirected to the 5th Slide.
For Logging Out, I am using an Alert Controller, to provide the user with a confirmation, If he/she wants to logout. When the user Clicks Yes, it will redirect the user to the Slides Page, but It loads the first Slide. I want it to go to my 5th Slide which is my Login Page.
The Buttons for the Alert Controller are below:
{
text: 'Log Out',
handler: () => {
this.globalService.setToken(null);
this.navCtrl.navigateRoot('/welcomepage');
}
},
{
text: 'No',
role: 'cancel',
handler: () => {
}
}