I am currently building app with Ionic framework using Vuejs. I currently struggling with router navigation. I will explain problem as below:
I have 3 screens, Home Page, Form Step 1 and Form Step 2. Normal order of flow is:
"Home Page" -> "Form Step 1" -> "Form Step 2"
I am using router.push() at each page so that use can go back to previous page at any stage (using android back button). But I want once use completes the "Form Step 2" and I navigate back to "Home Page" then back button should not work.
I searched a lot how to pop history stack, but i can't find any.
I used router.replace() on "Form Step 2", but that only pops "Form Step 2" page, and if use click back button on home page it is taking to "Form Step 1".
I tried all router.navigate() as well, but none is working. Any idea how to solve this issue?