]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-tree.c
More layout fixes
[ps-cgit] / ui-tree.c
index 9be3140c40b7583bfa07a435735f958c6d39b723..2f052c71e13077ca2caed29a419401b39062ed6b 100644 (file)
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -36,7 +36,8 @@ static void print_object(const unsigned char *sha1, char *path)
        }
 
        html(" blob: <a href='");
-       html_attr(cgit_pageurl(ctx.qry.repo, "blob", fmt("id=%s", sha1_to_hex(sha1))));
+       html_attr(cgit_pageurl(ctx.qry.repo, "blob",
+                              fmt("id=%s&path=%s", sha1_to_hex(sha1), path)));
        htmlf("'>%s</a>",sha1_to_hex(sha1));
 
        html("<table summary='blob content' class='blob'>\n");