X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/0ff143df7043b7dd87c31c50fa875bc96d1a7779..c8e3295469bd3b8e38a9ea4478d517d3861e6c93:/ui-shared.c diff --git a/ui-shared.c b/ui-shared.c index 137e469..3d5030b 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -534,7 +534,7 @@ void cgit_print_docstart(struct cgit_context *ctx) html("\n"); } @@ -621,8 +621,8 @@ void cgit_add_hidden_formfields(int incl_head, int incl_search, if (!ctx.cfg.virtual_root) { url = fmt("%s/%s", ctx.qry.repo, page); - if (ctx.qry.path) - url = fmt("%s/%s", url, ctx.qry.path); + if (ctx.qry.vpath) + url = fmt("%s/%s", url, ctx.qry.vpath); html_hidden("url", url); } @@ -728,7 +728,7 @@ void cgit_print_pageheader(struct cgit_context *ctx) html("
\n"); cgit_add_hidden_formfields(1, 0, "log"); html("