all repos — cgit @ db4b735464aa9a3a329494b7f042413a65e182f2

a hyperfast web frontend for git written in c

ui-shared: keep filter repolist page in pagination
Jason A. Donenfeld Jason@zx2c4.com
Tue, 03 Mar 2015 17:13:52 +0100
commit

db4b735464aa9a3a329494b7f042413a65e182f2

parent

c3473e8a5d830fa0a2fc193eae8b30001a10871e

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

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

@@ -144,10 +144,10 @@ static void site_url(const char *page, const char *search, const char *sort, int ofs)

{ char *delim = "?"; - if (ctx.cfg.virtual_root) - html_attr(ctx.cfg.virtual_root); + if (!page) + html_attr(ctx.qry.url); else - html_url_path(ctx.cfg.script_name); + html_attr(cgit_rooturl()); if (page) { htmlf("?p=%s", page);