diff --git a/fs.go b/fs.go index 7a73150..e24b8e5 100644 --- a/fs.go +++ b/fs.go @@ -169,7 +169,7 @@ func dirList(w ResponseWriter, f fs.File) { } link := LineLink{ Name: name, - URL: (&url.URL{Path: name}).EscapedPath(), + URL: "./" + url.PathEscape(name), } fmt.Fprintln(w, link.String()) }