Unknwon 10 年之前
父节点
当前提交
21b9d5fa1f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      routers/repo/commit.go

+ 2 - 2
routers/repo/commit.go

@@ -300,7 +300,7 @@ func CompareDiff(ctx *middleware.Context) {
 	ctx.Data["Commit"] = commit
 	ctx.Data["Commit"] = commit
 	ctx.Data["Diff"] = diff
 	ctx.Data["Diff"] = diff
 	ctx.Data["DiffNotAvailable"] = diff.NumFiles() == 0
 	ctx.Data["DiffNotAvailable"] = diff.NumFiles() == 0
-	ctx.Data["SourcePath"] = "/" + path.Join(userName, repoName, "src", afterCommitId)
-	ctx.Data["RawPath"] = "/" + path.Join(userName, repoName, "raw", afterCommitId)
+	ctx.Data["SourcePath"] = setting.AppSubUrl + "/" + path.Join(userName, repoName, "src", afterCommitId)
+	ctx.Data["RawPath"] = setting.AppSubUrl + "/" + path.Join(userName, repoName, "raw", afterCommitId)
 	ctx.HTML(200, DIFF)
 	ctx.HTML(200, DIFF)
 }
 }