I’m trying to remove history after submitting a form using,
app.views.main.router.clearPreviousHistory();
after form is submitted. The problem is that, suppose if a form is at page2
after executing the statement, it will remove history prior to page2
but i want to remove history including page2
so that if a user is at page3
, he or she will not be able to go to page2
. How can i achieve this behavior?