Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWinston Prakash2012-12-18 12:42:02 -0500
committerWinston Prakash2012-12-18 12:42:02 -0500
commit152bbc7ddf54f58e1429b70ee550f1a9a1f7ac99 (patch)
treeaab6861791519d788e30a9dfc9e393212e5c67ea
parentc6f59f0bf065fb3a39393876205684a83c3d64d9 (diff)
downloadorg.eclipse.hudson.core-152bbc7ddf54f58e1429b70ee550f1a9a1f7ac99.tar.gz
org.eclipse.hudson.core-152bbc7ddf54f58e1429b70ee550f1a9a1f7ac99.tar.xz
org.eclipse.hudson.core-152bbc7ddf54f58e1429b70ee550f1a9a1f7ac99.zip
Fix Bug 396850 - 404 error deleting a job (regression)
-rw-r--r--hudson-core/src/main/resources/lib/layout/jobDeleteForm.jelly7
1 files changed, 6 insertions, 1 deletions
diff --git a/hudson-core/src/main/resources/lib/layout/jobDeleteForm.jelly b/hudson-core/src/main/resources/lib/layout/jobDeleteForm.jelly
index 34b9ed4a..fefb0778 100644
--- a/hudson-core/src/main/resources/lib/layout/jobDeleteForm.jelly
+++ b/hudson-core/src/main/resources/lib/layout/jobDeleteForm.jelly
@@ -115,7 +115,12 @@
}
function deletingJob() {
- window.location.href="${rootURL}";
+ var gotoUrl = "${rootURL}";
+ if (gotoUrl === ""){
+ window.location.href="/";
+ }else{
+ window.location.href = gotoUrl;
+ }
setTimeout(function() {
jQuery('#confirmationDialog').dialog('close');
}, 2000);

Back to the top