repos/stagit

fork of stagit, a static git page generator
Commits Files Refs README LICENSE
commit df30ea8e2b90ad1b83ca0431f89596873ab9e2e2
parent 014cc2872c603f3940af468cbeba8fe892caea2e
Author: mjkloeckner <martin.cachari@gmail.com>
Date:   Tue,  1 Sep 2026 15:49:59 -0300

Fix open file name go back reference

Diffstat:
Mstagit.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/stagit.c b/stagit.c
@@ -1083,8 +1083,10 @@ writeblob(git_object *obj, const char *fpath, const char *rpath, const char *fil
               "</script>", fp);
 
     fputs("<div id=\"open-file-header\"><div id=\"open-file-name\"><a id=\"file-parent-path\" href=\"", fp);
+    // printf("relpath is '%s'\n", relpath);
+    // fputs(relpath, fp);
     xmlencode(fp, relpath, strlen(relpath));
-    fputs("/>", fp);
+    fputs("file/", fp);
     xmlencode(fp, path, strlen(path));
     fputs(".html\">", fp);
     xmlencode(fp, path, strlen(path));