我正在使用Ember 1.9.1并在转换到具有查询参数的路径时遇到问题.
将queryParams不会出现在URL中.
我得到http:// localhost:8080/login而不是http:// localhost:8080/login?email = myemail&uuid = myuuid
App.MyRouteRoute = Ember.route.extend({
redirect: function (model, transition) {
this.transitionTo('login', {
queryParams: {
uuid: model.get('uuid'),
email: model.get('email')
}
});
}
Run Code Online (Sandbox Code Playgroud) ember.js ×1