I think there is a bug with ionic4 beta routing. Suppose I have 4 pages page1, page2, page3, page4. Now if I go from page1 to page4, the navigation stack stores them in array, like
0: page1,
…
3: page4,
But if I go to page2 again not by back button but through routing(be it button click or any other way), it simply removes page3 and page4 from stack. Like,
0: page1,
1: page2
The default behavior should be to add page2 in the stack array like the following
0: page1,
1: page2,
2: page3,
3: page4,
4: page2
Please help me know if it is a bug or I am making some mistake. If it is a bug, what is the way around?