Hi there,
I’ve got an app where I need to navigate to a page with an url('<a href="#/home/myPage/' + id + '">OpenPage</a>'). I think navigating through url’s is the same action as navCtrl.setRoot('myPage'), meaning there are no pages in the history. When opening this page, I would like to be able to go back to the previous page with the state restored. I’ve tried navCtrl.pop(), but since there’s no pages in the backstack I get an error.
However, when I press the back button in Android I get the exact action I would like to happen, but I can not find how to trigger the backbutton from code. Is this possible, and if not, how can I achieve the described scenario? Navigating without url’s is not an option, and I do really need the <a href> since I substract url’s from text and open this url in the other page in my app.