fix #45
parent
70576793d9
commit
bdfa7d8411
|
@ -10,8 +10,8 @@
|
||||||
<!-- {{ if .IsDir }}
|
<!-- {{ if .IsDir }}
|
||||||
<div class="action" id="info">
|
<div class="action" id="info">
|
||||||
<i class="material-icons">info</i>
|
<i class="material-icons">info</i>
|
||||||
</div> -->
|
</div>
|
||||||
{{ end }}
|
{{ end }}-->
|
||||||
<div class="action" id="download">
|
<div class="action" id="download">
|
||||||
<a href="?download=true">
|
<a href="?download=true">
|
||||||
<i class="material-icons" title="Download">file_download</i> <span>Download</span>
|
<i class="material-icons" title="Download">file_download</i> <span>Download</span>
|
||||||
|
|
|
@ -18,7 +18,7 @@ func ServeListing(w http.ResponseWriter, r *http.Request, c *config.Config, u *c
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
// Loads the content of the directory
|
// 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 {
|
if err != nil {
|
||||||
return errors.ErrorToHTTPCode(err, true), err
|
return errors.ErrorToHTTPCode(err, true), err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue