about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2015-03-03 17:13:52 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2015-03-03 17:13:52 +0100
commitdb4b735464aa9a3a329494b7f042413a65e182f2 (patch)
tree2820716a918ab292da34dda305578d035b8c357b
parentui-repolist: use ctx.qry.url instead of rooturl, in case we're filtering (diff)
downloadcgit-pink-db4b735464aa9a3a329494b7f042413a65e182f2.tar.gz
cgit-pink-db4b735464aa9a3a329494b7f042413a65e182f2.zip
ui-shared: keep filter repolist page in pagination
Diffstat (limited to '')
-rw-r--r--ui-shared.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 21e163c..f8e5bef 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -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);