How can I make $state.go not keep history?

I’m using $state.go to navigate from my login page to my page with a menu slider. However, this creates a “back” button int he header. How can I remove this?

1 Like

Use view service:

1 Like

This will clear all the history but my scenario is different:


when I save a new entity I want to remove ‘/categories/new’ from the history.

ui-router have $state.go(state, params, options) where you can pass a {location:‘replace’} option to get this.
but this will only remove the step from the browser history, not the ion-view history.

can you suggest a workaround or something like that?

Hello !

I have the same problem, there is a solution ?