From 2379e52e35835c735113d77996d49e63b3828bdd Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 29 Oct 2026 19:56:43 -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 2.12.1