]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-repolist.c
CGIT 0.8.3.2
[ps-cgit] / ui-repolist.c
index 3ef2e99deb18c3cff37a76d59dbc1f157671d666..0a0b6ca19e942f0ddcb52128594f8584aab8c12c 100644 (file)
@@ -94,7 +94,7 @@ int is_in_url(struct cgit_repo *repo)
 
 void print_sort_header(const char *title, const char *sort)
 {
-       htmlf("<th class='left'><a href='./?s=%s", sort);
+       htmlf("<th class='left'><a href='%s?s=%s", cgit_rooturl(), sort);
        if (ctx.qry.search) {
                html("&q=");
                html_url_arg(ctx.qry.search);