lundi 2 mars 2015

Forwarding/redirecting/aliasing an entire route structure in Ember.js

I have a multi-level route structure under A:



this.resource('A', function() {
this.route('A1');
...
})


I want to redirect everything that comes in under another top-level route such as B to A. In other words, I essentially want to alias B to A. So B/A1 would be redirected to A/A1 and in general B/any/other/stuff would be redirected to A/any/other/stuff. What is the best way to achieve this?





Aucun commentaire:

Enregistrer un commentaire