From 1fc6e3672741441721bc9ec9ffd1ffd3f2c8cf33 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:10:49 -0700 Subject: Document virtual-root's default of SCRIPT_NAME cgit falls back to SCRIPT_NAME followed by a slash when virtual-root is unset, so its links always take the path form and none take the ?url= form the docs described. --- MANUAL.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'MANUAL.txt') diff --git a/MANUAL.txt b/MANUAL.txt index 4f45d90..10592cd 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -575,9 +575,9 @@ trust-scan-config:: "enable-git-config". virtual-root:: - Url which, if specified, is used as root for all cgit links. cgit then - generates virtual urls such as "/cgit/tree/README" in place of - "?url=cgit/tree/README". Default value: none. + Url used as root for all cgit links, such as "/cgit/" for links like + "/cgit/repo/tree/README". Default value: SCRIPT_NAME followed by a + slash. Repository settings -- cgit