]> granicus.if.org Git - cgit/commitdiff
ui-shared: keep filter repolist page in pagination
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 3 Mar 2015 16:13:52 +0000 (17:13 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 3 Mar 2015 16:13:52 +0000 (17:13 +0100)
ui-shared.c

index 21e163cd6b39d17ef35aeaee2316bd3da36f9895..f8e5bef75852e44b380b0a7a416605d7a7102504 100644 (file)
@@ -144,10 +144,10 @@ static void site_url(const char *page, const char *search, const char *sort, int
 {
        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);