I have a four vertical panels UI :
- The first panel shows the menu and allows you to choose the data you want to display
- The second panel lets you select a filter from a list of pre-defined filters
- The third panel lets you see results list of the filter
- The forth panel let you display the details of a specific item
For this UI, I use Nested Routes and Outlets :
App.Router.map(function() {
this.resource('customers', { 'path' : '/customers' }, function() {
this.resource('customers_filters', { 'path' : '/:filter' }, function() {
this.resource('customer', { 'path' : '/show/:customer_id' });
});
});
});
Everything work fine but when I show the details of a specific item (the last route in my nested routes) the hash in URL is not correct.
- First route OK : #/customers
- Second route OK : #/customers/all
- Third route KO : #/customers/function filter() { [native code] }/show/2
I put an example on JsBin : http://jsbin.com/iNAGaVo/1
What am I doing wrong ? Thank you