Browse Source

fix link

pull/32/head
slene 11 years ago
parent
commit
8ef71343df
  1. 3
      routers/repo/single.go

3
routers/repo/single.go

@ -137,10 +137,9 @@ func Single(ctx *middleware.Context, params martini.Params) {
return return
} else { } else {
// current repo branch link // current repo branch link
urlPrefix := "http://" + base.Domain + branchLink
ctx.Data["FileName"] = readmeFile.Name ctx.Data["FileName"] = readmeFile.Name
ctx.Data["FileContent"] = string(base.RenderMarkdown(blob.Contents(), urlPrefix)) ctx.Data["FileContent"] = string(base.RenderMarkdown(blob.Contents(), branchLink))
} }
} }
} }

Loading…
Cancel
Save