Transition.abort() does not preserve URL on browser 'back' btn click

The ‘back’ button breaks my app if I try to stop the transition with transition.abort()

If I try to do so the URL and the route of the application changes but the views stay the same which puts my app in inconsistent state.

Is there any work around for this problem?

@arkadiyk I got around this using window.history.forward()

App.ApplicationRoute = Em.Route.extend({
actions: {
  willTransition: (transition) {
     transition.abort();

     if (window.history) {
       window.history.forward();
     }
  }
}

});

3 Likes