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

@@ -291,7 +291,7 @@ angular.module('manage').controller('manageConnectionController', ['$scope', '$i
* Cancels all pending edits, returning to the management page.
*/
$scope.cancel = function cancel() {
$location.url('/manage/');
$location.path('/manage/modules/connections/');
};
/**
@@ -313,7 +313,7 @@ angular.module('manage').controller('manageConnectionController', ['$scope', '$i
// Save the connection
connectionService.saveConnection($scope.connection)
.success(function savedConnection() {
$location.path('/manage/');
$location.path('/manage/modules/connections/');
})
// Notify of any errors
@@ -363,7 +363,7 @@ angular.module('manage').controller('manageConnectionController', ['$scope', '$i
// Delete the connection
connectionService.deleteConnection($scope.connection)
.success(function deletedConnection() {
$location.path('/manage/');
$location.path('/manage/modules/connections/');
})
// Notify of any errors