diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index dea9493e4..08f6d5634 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -53,7 +53,7 @@ // Overwrite image method to append proper prefix to the source URL var renderer = new marked.Renderer(); - var context = '{{.TreeLink}}'.replace('/src/', '/raw/'); + var context = '{{.BranchLink}}'.replace('/src/', '/raw/'); renderer.image = function (href, title, text) { return `