Fix: came_from with query string was not being properly interpreted

This commit is contained in:
tanshu 2014-10-03 15:41:13 +05:30
parent 91b60fa76d
commit 666613fb54
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ var LoginCtrl = ['$scope', '$http', '$location', '$routeParams', '$cookieStore',
if (angular.isUndefined(came_from) || came_from === "" || came_from === "/login" || came_from === "/logout") {
came_from = "/";
}
$location.path(came_from).search({});
$location.url(came_from);
}).
error(function (data, status, headers, config) {
if (status === 403 && ['Unknown Client', 'OTP not supplied', 'OTP is wrong'].indexOf(data) !== -1) {