X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/1a9e56607eae2df2f4522b41294d94cb09fc4e5c..db4b735464aa9a3a329494b7f042413a65e182f2:/ui-shared.c diff --git a/ui-shared.c b/ui-shared.c index 1a84afc..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); @@ -952,7 +952,7 @@ void cgit_print_pageheader(void) NULL, NULL, 0); html("