Ember js - Cannot generate URL with dynamic segments using urlFor method
问题 I am able to generate a URL using urlFor() when I’m in the route /1/1/orders . but I’m unable to generate a URL in the application route. So this code is not working: var routeName = "scope.purchase.invoice"; var dynamicSegments = { scopeId: 1, scopeData: 2, invoiceId: 3, pageSize: 20, pageIndex: 1 }; var url = this.router.urlFor(routeName, 1, 2, 3, 10, 1); console.log("inside generated url", url); For this router.js : this.route("scope", { path: '/:scopeId/:scopeData' }, function(){ this