I have router like this
Router.map(function() {
this.route('messages-faxes', function() {
this.route('inbox');
});
this.route('contacts', function(){
this.route('new');
});
});
In header of page i have nave bar with link to messages-faxes/inbox
To messages-faxes.index rout i add some code to redirect to messages-faxes.inbox
redirect: function(params) {
this.transitionTo('messages-faxes.inbox');
}
If i click on link i have that backtrace in console
Preparing to transition from 'contacts.index' to 'messages-faxes.inbox'
Transitioned into 'messages-faxes.inbox'
Preparing to transition from 'messages-faxes.inbox' to 'messages-faxes.index'
Transitioned into 'messages-faxes.inbox'
How to prevent transition from child rout(messages-faxes.inbox) to parent(messages-faxes.index)? Or it is good for ember?
Aucun commentaire:
Enregistrer un commentaire