When I open a modal with lazy loading pages I have a strange bug.
The Modal is shown normally without problems but when I close the modal the app loads, not the page which created the modal, it loads a completely different page (intro.ts)
I open the modal with this code:
openRentenInfoPage() {
this.modalCtrl.create('InfoRentenbescheidPage').present();
}
I close the modal with this code:
dismiss() {
this.viewCtrl.dismiss();
}
I don’t have this problem on other pages who use a Modal.
This problem is also there when I push the page with the navCtrl…
I created a gif here: https://gifyu.com/images/iOnic3_modal_bug.gif
and a GitHub repo here: https://github.com/MTechDE/ionic-modal-bug
I also created an Issue: https://github.com/driftyco/ionic/issues/11150