I have been working with Ionic for a project and have just loved it. The good guys on this forum have helped me through all my queries so far and am really thankful to you all. I have another query which is as follows.
I wish to disallow the user from navigating back to the previous page using browser back button or by using the device back button on an Android device. I have a CodePen here which will showcase the problem.
Click on the login button on the login page --> You will be take to the home page --> Open the side menu and click on Activity or Send Feedback --> You will be navigated to the respective page --> Now click on Logout and you will be navigated to the Login page --> Click the browser back or the Android device back button --> You will go back to the Activity/Send Feedback page
I want to disallow this. Once the user clicks on logout, the user should not be able to go back to the previous page and should stay on the login page. I searched through the Ionic docs and forums for similar issues and implementations, but did not come across any concrete solution.
Any help is greatly appreciated.