Ionic Page + browser history. How to remove page from browser history?

Hello guys.

I have web app and I use ionic-page for navigation.
In my app have page ‘Intro’. I must show intro page once. After leave from intro page I need to remove intro page from browser history.

I can do it use window.history. But I don’t like this way. I want to use ‘ionic’ solution.



I believe the Ionic way is that you do not want to do this. Just assure the page is not shown anymore as part of your application flow.

And even if you would try windows. features I do not think you can trust the page really being removed fron the browser as the template and conponent caching is handled by Ionic/Angular under the hood.

So maybe clarify your use case in hiding stuff for the user.



1 Like