Skip to content

Usenet streaming with a WebDAV server and a SABnzbd-compatible API

C#

Fix /explore page for directories or files containing spaces.

nzbdav-devec9e6c971e66
diff --git a/frontend/app/routes/explore/route.tsx b/frontend/app/routes/explore/route.tsx
index ea3bb246..a682ebdd 100644
--- a/frontend/app/routes/explore/route.tsx
+++ b/frontend/app/routes/explore/route.tsx
@@ -95,6 +95,7 @@ function getIcon(file: ExploreFile) {
}
function getWebdavPath(pathname: string): string {
+ pathname = decodeURIComponent(pathname);
if (pathname.startsWith("/")) pathname = pathname.slice(1);
if (pathname.startsWith("explore")) pathname = pathname.slice(7);
if (pathname.startsWith("/")) pathname = pathname.slice(1);