I am facing some issues with navigation back to previous page.
What I am trying to do is in a cancel-button click I am calling a function where I am using history.back();
which is working fine. The problem is that the same page is having some validation so when I am clicking the cancel-button it is checking all the fields and then it is navigating back.
I also used history.go(-1)
getting same issue.
I even tried app.navigate("details/");
which is working fine but it is coming in loop. For example: if I am navigating back to page 2 from page 3 its working but when I am trying to navigate from page 2 to page 1 its coming back to page 3.
Can someone please help me figure this out.