static void print_sort_header(const char *title, const char *sort)
{
html("<th class='left'><a href='");
- html_attr(cgit_rooturl());
+ html_attr(cgit_currenturl());
htmlf("?s=%s", sort);
if (ctx.qry.search) {
html("&q=");
class = (ctx.qry.ofs == ofs) ? "current" : NULL;
html("<li>");
cgit_index_link(fmt("[%d]", i + 1), fmt("Page %d", i + 1),
- class, search, sort, ofs);
+ class, search, sort, ofs, 0);
html("</li>");
}
html("</ul>");
cgit_close_filter(ctx.repo->owner_filter);
} else {
html("<a href='");
- html_attr(cgit_rooturl());
- html("?=");
+ html_attr(cgit_currenturl());
+ html("?q=");
html_url_arg(ctx.repo->owner);
html("'>");
html_txt(ctx.repo->owner);