Ionic navigation to lock

hi i use this way to navigate to another page
how can i navigate to a page which can not be back but back button
forexample in telegram
there is lock button , when i click it
it locks app and no way to back except fill password