mirror of https://github.com/Xhofe/alist
fix(webdav): incorrect href if base_path isn't root (close #1629)
parent
8d4d8648c6
commit
57bcd376b4
|
@ -597,7 +597,7 @@ func (h *Handler) handlePropfind(w http.ResponseWriter, r *http.Request) (status
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
href := path.Join(h.Prefix, reqPath)
|
href := path.Join(h.Prefix, strings.TrimPrefix(reqPath, user.BasePath))
|
||||||
if href != "/" && info.IsDir() {
|
if href != "/" && info.IsDir() {
|
||||||
href += "/"
|
href += "/"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue