import Route from '@ember/routing/route'; export default Route.extend({ beforeModel() { // this.transitionTo('app.list', 1); }, actions: { didTransition() { if (window.localStorage) { const prevURL = window.localStorage.getItem('prevURL'); if (prevURL) { window.localStorage.removeItem('prevURL'); if (prevURL != window.location.href) { window.location.href = prevURL; } } } return true; // Bubble the didTransition event } } });