ui-shared: keep filter repolist page in pagination

This commit is contained in:
Jason A. Donenfeld 2015-03-03 17:13:52 +01:00
父節點 c3473e8a5d
當前提交 db4b735464
共有 1 個檔案被更改,包括 3 行新增3 行删除

查看文件

@ -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);