fix raw file link in file view

This commit is contained in:
Iris Lightshard 2023-02-21 21:33:11 -07:00
parent 1f7d760e41
commit 94d07ef8b2
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398

View file

@ -216,7 +216,7 @@ func (d *deps) FileContent(w http.ResponseWriter, r *http.Request) {
data["ref"] = ref
data["desc"] = getDescription(path)
data["path"] = treePath
data["raw"] = fmt.Sprintf("/%s/blob/raw/%s/%s", name, ref, treePath)
data["raw"] = fmt.Sprintf("/%s/raw/%s/%s", name, ref, treePath)
d.showFile(contents, data, w)
return