Having this router:
App.Router.map(function() {
this.resource('products', function() {
this.route('show', {
path: '/:productId'
});
});
});
I’m in the route products/12345
and I want to abort the transition from the ProductsShowRoute
to another route without losing the 12345
id of the path; I’m trying this:
App.ProductsShowRoute = Em.Route.extend({
actions: {
willTransition: function(transition) {
transition.abort();
}
}
});
The problem is that the path loses the product id
Can someone help me?