diff --git a/routers/repo/cloudbrain.go b/routers/repo/cloudbrain.go index afe69cac5..47be8ed75 100755 --- a/routers/repo/cloudbrain.go +++ b/routers/repo/cloudbrain.go @@ -873,7 +873,8 @@ func CloudBrainDebug(ctx *context.Context) { task := ctx.Cloudbrain debugUrl := setting.DebugServerHost + "jpylab_" + task.JobID + "_" + task.SubTaskName if task.BootFile!=""{ - getFileUrl(debugUrl,task.BootFile) + ctx.Redirect(getFileUrl(debugUrl,task.BootFile)) + }else{ ctx.Redirect(debugUrl) }