]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-shared.c
Do not include current path in the "tree" menu link
[ps-cgit] / ui-shared.c
index 383b8acb353124c85ec2f920971df469013c5a08..64c237fe0145230d18b34e8dbb6ecb96d87bf160 100644 (file)
@@ -304,8 +304,8 @@ void cgit_print_pageheader(char *title, int show_search)
                cgit_log_link("log", NULL, NULL, cgit_query_head,
                              cgit_query_sha1, cgit_query_path);
                html(" ");
                cgit_log_link("log", NULL, NULL, cgit_query_head,
                              cgit_query_sha1, cgit_query_path);
                html(" ");
-               cgit_tree_link("files", NULL, NULL, cgit_query_head,
-                              cgit_query_sha1, cgit_query_path);
+               cgit_tree_link("tree", NULL, NULL, cgit_query_head,
+                              cgit_query_sha1, NULL);
                html(" ");
                cgit_commit_link("commit", NULL, NULL, cgit_query_head,
                              cgit_query_sha1);
                html(" ");
                cgit_commit_link("commit", NULL, NULL, cgit_query_head,
                              cgit_query_sha1);