GUAC-1133: Redirect to proper parent URL for given management pages (fixes GUAC-1137).

This commit is contained in:
Michael Jumper
2015-03-19 15:11:17 -07:00
parent 35f3d9e158
commit 68c3d36025
3 changed files with 9 additions and 9 deletions

View File

@@ -400,7 +400,7 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto
* Cancels all pending edits, returning to the management page.
*/
$scope.cancel = function cancel() {
$location.path('/manage/');
$location.path('/manage/modules/users/');
};
/**
@@ -426,7 +426,7 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto
// Upon success, save any changed permissions
permissionService.patchPermissions($scope.user.username, permissionsAdded, permissionsRemoved)
.success(function patchedUserPermissions() {
$location.path('/manage/');
$location.path('/manage/modules/users/');
})
// Notify of any errors
@@ -488,7 +488,7 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto
// Delete the user
userService.deleteUser($scope.user)
.success(function deletedUser() {
$location.path('/manage/');
$location.path('/manage/modules/users/');
})
// Notify of any errors