Find a page in history

The app builds a history of pages the user has gone to.
I have added a button that will take the user from one page and push them to another page.
This works, but if the user use the android back button, the same page is in the history twice.
What I would like to do is before I push the user to the new page loop through the history and take out and old page, so the user only has that page once in history.
this.navCtrl.getViews();
To get the history.
I can’t look at the page name because that is lost in minimization.

Is there a way to do this, or just deal with the same page in history.
Thanks