Prevent going to previous view

Hello :smiley:

I’ve build a food delivery app and after taking a order the app gets redirected to the home view (from checkout to home). How can I prevent going back to checkout? The users can go back using backbutton on android. Btw: I use Ionic 5 Vanilla JS

I think you can use NavControllers navigateRoot here, as you don’t want to be able to go back to any Page before :thinking: Can you test this?

@EinfachHans Thank you for your fast answer. A solution for this problem is IonNav’s function ‘popToRoot()’. It prevents going back to the last page. Thanks!