fix: archive ../ returns correctly
This commit is contained in:
@@ -324,7 +324,7 @@ func generateArchiveIndex(fsPath string, urlPath string) (string, error) {
|
||||
up = "/archive"
|
||||
}
|
||||
if !strings.HasSuffix(up, "/") {
|
||||
up = up + "/"
|
||||
up = "/archive" + filepath.Dir(up) + "/"
|
||||
}
|
||||
b.WriteString(`<a href="` + template.HTMLEscapeString(up) + `">../</a>` + "\n")
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user