aboutsummaryrefslogtreecommitdiff
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
-rw-r--r--ui-shared.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui-shared.c b/ui-shared.c
index f8e5bef..21e163c 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 (!page)
- html_attr(ctx.qry.url);
+ if (ctx.cfg.virtual_root)
+ html_attr(ctx.cfg.virtual_root);
else
- html_attr(cgit_rooturl());
+ html_url_path(ctx.cfg.script_name);
if (page) {
htmlf("?p=%s", page);