From: slene Date: Thu, 20 Mar 2014 09:25:04 +0000 (+0800) Subject: fix link X-Git-Tag: v0.9.99~2367^2~35 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8ef71343dfef8914e9383e159915baa6a341eeef;p=gitea.git fix link --- diff --git a/routers/repo/single.go b/routers/repo/single.go index c10d30a7d6..2bc77c1c01 100644 --- a/routers/repo/single.go +++ b/routers/repo/single.go @@ -137,10 +137,9 @@ func Single(ctx *middleware.Context, params martini.Params) { return } else { // current repo branch link - urlPrefix := "http://" + base.Domain + branchLink ctx.Data["FileName"] = readmeFile.Name - ctx.Data["FileContent"] = string(base.RenderMarkdown(blob.Contents(), urlPrefix)) + ctx.Data["FileContent"] = string(base.RenderMarkdown(blob.Contents(), branchLink)) } } }