mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-10-25 20:35:50 +08:00
fix link
This commit is contained in:
@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user