From 94d07ef8b2581e83aa92193d26ea201291fa62c9 Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Tue, 21 Feb 2023 21:33:11 -0700 Subject: [PATCH] fix raw file link in file view --- routes/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/routes.go b/routes/routes.go index f1b1286..b309054 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -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