Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
How to clear onsen ui page stack?
-
Hi,
I am incorporating a “sign out” feature. I want to clear out the entire onsen DOM/page stack so that the user is not taken to previous page when user clicks the back button.
Thanks for your help!
-
-
Jamal,
resetTopage() requires a ons navigator. I want to clear navigator too.
Thanks
-
@mmike, did you try it?
I assume you have a sign-in page (first page) and that’s where you want to go back to.
-
any solution for this? I am facing problem on the same.
-
I don’t know why are you trying to clear onsen DOM, but if you want to clear page stack, you can do this
location.href = 'index.html';