Defining a multi segmented catch all route in ember.js
问题 I am using Ember.js and I would like to create a catch all route to send the user back to the root of the application if they navigate to a URL that does not match a resource. (I am using the history API) I have implemented this like so: App.Router.map(function() { this.resource('things', function() { this.resource('thing', {path:':thing_id'}); }); this.route('catchAll', { path: ':*' }); this.route('catchAll', { path: ':*/:*' }); this.route('catchAll', { path: ':*/:*/:*' }); }); App.Router