Hi!
I’m getting error when trying to generate link-to helper
Uncaught Error: Assertion Failed: You’re not allowed to have more than one controller property map to the same query param key, but both
orders.detail:_qpMap
andorders.detail.index:_qpMap
map to_qpMap
. You can fix this by mapping one of the controller properties to a different query param key via theas
config option, e.g._qpMap: { as: 'other-_qpMap' }
I have no query-params at all.
route table:
this.route('delivery', { path: ':deliveryPoint_id' }, function () {
this.route('orders', { path: 'orders', resetNamespace: true }, function () {
this.route('detail', { path: ':order_id' });
this.route('archive', { path: 'history' });
this.route('drafts', { path: 'drafts' });
});
});
Template part inside order.index:
<p class="name">{{#link-to "orders.detail" g}}{{g.supplier.name}}{{/link-to}}</p>