diff --git a/app/src/main/java/io/legado/app/lib/webdav/WebDav.kt b/app/src/main/java/io/legado/app/lib/webdav/WebDav.kt index ced66ae09..571174a9c 100644 --- a/app/src/main/java/io/legado/app/lib/webdav/WebDav.kt +++ b/app/src/main/java/io/legado/app/lib/webdav/WebDav.kt @@ -151,8 +151,9 @@ open class WebDav(val path: String, val authorization: Authorization) { .toInstant(ZoneOffset.of("+8")).toEpochMilli() } }.getOrNull() ?: 0 + val fullURL = NetworkUtils.getAbsoluteURL(baseUrl, href) webDavFile = WebDavFile( - "$baseUrl$href", + fullURL, authorization, displayName = fileName, urlName = urlName,