commit 7724b04ba68901dfeb37cc8be8231cec72785fd3
from: Stefan Sperling <stsp@stsp.name>
date: Fri Feb 14 13:45:18 2025 UTC

gotwebd: preserve 'folder=' parameter when following More links

When navigating commits made to a file in a subdirectory the More
link wouldn't work as it looked for the file path in the repository
root directory rather than the subdirectory.

commit - 56275f3b8784d02cc619785d1926615cb54fd059
commit + 7724b04ba68901dfeb37cc8be8231cec72785fd3
blob - b703d45be42042712ee4eed2e53ca1ea505f27ca
blob + cd49228ec99471205e216489a687095f309e2ee8
--- gotwebd/pages.tmpl
+++ gotwebd/pages.tmpl
@@ -458,6 +458,7 @@ nextsep(char *s, char **t)
 		.path = qs->path,
 		.commit = t->more_id,
 		.headref = qs->headref,
+		.folder = qs->folder,
 		.file = qs->file,
 	};