all repos — cgit @ 9735835c0e9f2c4a0caf5a431fc455d5855472aa

a hyperfast web frontend for git written in c

Fix repolist search links with virtual root

Signed-off-by: Geoff Johnstone <geoff.johnstone@googlemail.com>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Geoff Johnstone qwerty@acm.org
Sun, 20 Sep 2009 11:32:07 +0100
commit

9735835c0e9f2c4a0caf5a431fc455d5855472aa

parent

8071e18dcbf56b98ecea4332e85884cdd91236cc

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M ui-repolist.cui-repolist.c

@@ -94,7 +94,7 @@ }

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);
M ui-shared.hui-shared.h

@@ -3,6 +3,7 @@ #define UI_SHARED_H

extern char *cgit_httpscheme(); extern char *cgit_hosturl(); +extern char *cgit_rooturl(); extern char *cgit_repourl(const char *reponame); extern char *cgit_fileurl(const char *reponame, const char *pagename, const char *filename, const char *query);