summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/single.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/routers/repo/single.go b/routers/repo/single.go
index 4a6af9ff50..6eb839c10d 100644
--- a/routers/repo/single.go
+++ b/routers/repo/single.go
@@ -139,10 +139,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))
}
}
}