My interface consists of four vertical panels:
- The first panel displays the menu for selecting data
- The second panel allows you to choose a filter from a list
- The third panel shows the results based on the selected filter
- The fourth panel displays detailed information about a specific item
To implement this UI, I am using 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 works fine except for when I try to show the details of a specific item. The hash in the URL is not correct.
- First route is OK: #/customers
- Second route is OK: #/customers/all
- Third route is NOT OK: #/customers/function filter() { [native code] }/show/2
An example is available on JsBin: http://jsbin.com/iNAGaVo/1
What am I doing wrong? Thank you.