【发布时间】:2014-05-17 00:22:54
【问题描述】:
如果这是我的路由设置,我希望“否则”路由重定向到“/inbound?page=0&size=20&sort=number,desc”,但路由中的“?”转义为“%3F ”。
.config(function ($routeProvider) {
$routeProvider
.when('/outbound', {
templateUrl: 'views/shipments.html',
controller: 'ShipmentCtrl'
})
.when('/inbound', {
templateUrl: 'views/receipts.html',
controller: 'ReceiptsCtrl'
})
.otherwise({
redirectTo: '/inbound'
});
});
【问题讨论】:
标签: angularjs