Ember Routes Redirect

From Index to Another Route

You want your root index route to redirect to another route such as when you are on the index url (root_url) and you need to get to root_url/#/another_route. This may be useful because you wish to use the model information from another_route on initial page load. A downloadable demo is located below.

Index Route to Another Route
1
2
3
4
5
6
App.IndexRoute = Ember.Route.extend({
redirect: function() {
//replace 'guitars' with your specific route name
this.transitionTo('guitars');
}
});

Download Demo