diff --git a/server/webdav/webdav.go b/server/webdav/webdav.go index ce6acfad6a8..e4d2c173a9a 100644 --- a/server/webdav/webdav.go +++ b/server/webdav/webdav.go @@ -597,7 +597,7 @@ func (h *Handler) handlePropfind(w http.ResponseWriter, r *http.Request) (status if err != nil { return err } - href := path.Join(h.Prefix, reqPath) + href := path.Join(h.Prefix, strings.TrimPrefix(reqPath, user.BasePath)) if href != "/" && info.IsDir() { href += "/" }