Feature: Maybe? Login redirect now supports query string

This commit is contained in:
tanshu committed 2014-10-03 15:34:49 +05:30
1 parent d86880396d
commit 91b60fa76d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -141,7 +141,7 @@ overlord.controller('BaseCtrl', ['$rootScope', '$scope', 'Auth', '$location', '$
} else {
var came_from = $routeParams.came_from;
if (angular.isUndefined(came_from) && $location.path() !== '/login') {
came_from = $location.path();
came_from = $location.url();
}
$location.path('/login').search({came_from: came_from});
}