import Ember from 'ember'; export default Ember.Route.extend({ redirect: function() { let url = this.router.location.formatURL('/not-found'); if (window.location.pathname !== url) { this.transitionTo('/not-found'); } } });