diff --git a/web/app.js b/web/app.js index f8cf48828..9c322a61f 100644 --- a/web/app.js +++ b/web/app.js @@ -777,7 +777,7 @@ const PDFViewerApplication = { const params = parseQueryString(queryString); file = params.get("file") ?? AppOptions.get("defaultUrl"); try { - file = new URL(file).href; + file = new URL(decodeURIComponent(file)).href; } catch { file = encodeURIComponent(file).replaceAll("%2F", "/"); }