You could define a catchall route using *
and do a redirect from there:
App.Router.map(function() {
this.route('catchAll', { path: '*:' });
});
App.CatchAllRoute = Ember.Route.extend({
redirect: function() {
alert('route not existen');
this.transitionTo('index');
}
});
Updated jsbin.
Hope it helps.