Feature: Maybe? Login redirect now supports query string
This commit is contained in:
1 parent
d86880396d
commit
91b60fa76d
2 files changed
+2
-2
No files matched your search
@@ -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});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user