diff --git a/awx/ui/static/js/helpers/JobTemplate.js b/awx/ui/static/js/helpers/JobTemplate.js index afa7ffd3fa..32731a51ee 100644 --- a/awx/ui/static/js/helpers/JobTemplate.js +++ b/awx/ui/static/js/helpers/JobTemplate.js @@ -21,8 +21,13 @@ angular.module('JobTemplateHelper', [ 'RestServices', 'Utilities', 'CredentialFo function navigate(canceled) { //Decide where to send the user once the modal dialog closes - if (!canceled && base == 'jobs') { - scope.refreshJob(); + if (!canceled) { + if (base == 'jobs') { + scope.refreshJob(); + } + else { + $location.path('/jobs'); + } } else { $location.path('/' + base);