This commit is contained in:
2026-04-08 10:16:30 +02:00
parent 44c5a4304f
commit de8930cd2a

View File

@@ -704,6 +704,9 @@
#:not-exist [on-not-exist (λ (file base-path path) path)]
)
(λ (file)
(let* ((idx (string-find file "?")))
(unless (eq? idx #f)
(set! file (substring file 0 idx))))
(let ((f (if (string=? file "/") "index.html" file)))
(when (string-prefix? f "/")
(set! f (substring f 1)))