diff --git a/_embed/templates/actions.tmpl b/_embed/templates/actions.tmpl index 7f3b2ef1..5c272ea9 100644 --- a/_embed/templates/actions.tmpl +++ b/_embed/templates/actions.tmpl @@ -10,8 +10,8 @@ -{{ end }} + +{{ end }}-->
file_download Download diff --git a/handlers/listing.go b/handlers/listing.go index 28d022db..77503a69 100644 --- a/handlers/listing.go +++ b/handlers/listing.go @@ -18,7 +18,7 @@ func ServeListing(w http.ResponseWriter, r *http.Request, c *config.Config, u *c var err error // Loads the content of the directory - listing, err := file.GetListing(u, i.VirtualPath, r.URL.Path) + listing, err := file.GetListing(u, i.VirtualPath, c.AbsoluteURL+r.URL.Path) if err != nil { return errors.ErrorToHTTPCode(err, true), err }