diff --git a/brewman/static/scripts/login.js b/brewman/static/scripts/login.js index 31ca37a1..635e4d63 100644 --- a/brewman/static/scripts/login.js +++ b/brewman/static/scripts/login.js @@ -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) {