I have the following navigation-case:
Home -> navCtrl.push(SearchPage) -> navCtrl.push(ResultPage)
or
Home -> navCtrl.push(SearchPage) -> navCtrl.push(ResultPage) -> navCtrl.push(DetailPage)
I want to navigate back to SearchPage. In first case, there is no problem, I can use
this.navCtrl.pop()
But, in second case, I try to use
this.navCtrl.popTo(SearchPage)
and this does not work as expected. Ionic navigates only one page back in stack. I know there is an issue with popTo() (https://github.com/driftyco/ionic/issues/6513)
How can I solve this problem?