diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-11-11 16:56:57 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-11-11 16:56:57 -0500 |
commit | 21b9d5fa1f4014b30619d221f5d665509d373147 (patch) | |
tree | a218abe46f12f66aaf8fb78651746e6540b29dcb | |
parent | 4f360d8f081d77908e8f5982886551fff4a393ff (diff) | |
download | gitea-21b9d5fa1f4014b30619d221f5d665509d373147.tar.gz gitea-21b9d5fa1f4014b30619d221f5d665509d373147.zip |
Fix #618
-rw-r--r-- | routers/repo/commit.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go index f060133aba..4a974aab8d 100644 --- a/routers/repo/commit.go +++ b/routers/repo/commit.go @@ -300,7 +300,7 @@ func CompareDiff(ctx *middleware.Context) { ctx.Data["Commit"] = commit ctx.Data["Diff"] = diff 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) } |