This directory listing isn't very good, is it...

Signed-off-by: arzumify <jliwin98@danwin1210.de>
This commit is contained in:
Tracker-Friendly 2024-11-03 12:09:05 +00:00
parent 7b1188545d
commit b0fb00d7fd
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ func listDirectory(w http.ResponseWriter, r *http.Request, root string) {
return
}
for _, entry := range entries {
_, err = w.Write([]byte("<li><a href=\"" + entry.Name() + "\">" + entry.Name() + "</a></li>"))
_, err = w.Write([]byte("<li><a href=\"./" + entry.Name() + "\">" + entry.Name() + "</a></li>"))
if err != nil {
serverError(w, 500)
slog.Error("Error writing directory listing: " + err.Error())