Reputation:
I´ve the following problem. I´m working on an App written with Ionic 3 and I need that when I refresh the browser it renders the current page and does not redirect me to the home page.
It's possible?
I have tried with this code:
this.navCtrl.setRoot (this.navCtrl.getActive (). component);
But this deletes the browsing history of navController.
Forgive me for my level of English, it´s still very poor.
Thanks in advance.
Upvotes: 2
Views: 1900
Reputation: 126
To deal with browser reloads you need to annotate your pages with @IonicPage. The Ionic Page handles registering and displaying specific pages based on URLs.
Upvotes: 0