From b0f8c1cf1b6ea495f03ec7f4632a347b71a35342 Mon Sep 17 00:00:00 2001 From: Aditya kumar singh <143548997+Adityakk9031@users.noreply.github.com> Date: Mon, 15 Sep 2025 23:52:38 +0530 Subject: [PATCH] Update app.js --- web/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", "/"); }