From 54cf445e12dfbbde08e6b155ec60d4595ab81630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20B=C3=B6ving?= Date: Thu, 16 Feb 2023 18:14:40 +0100 Subject: [PATCH] fix: #114 --- static/find/find.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/find/find.js b/static/find/find.js index 610c8d4..038a1a1 100644 --- a/static/find/find.js +++ b/static/find/find.js @@ -48,7 +48,8 @@ const queryParams = new Map( ); const fragmentPaths = fragment?.split(LEAN_FRIENDLY_SLASH_SEPARATOR) ?? []; -const pattern = queryParams.get("pattern") ?? fragmentPaths[1]; // if first fail then second, may be undefined +const encodedPattern = queryParams.get("pattern") ?? fragmentPaths[1]; // if first fail then second, may be undefined +const pattern = decodeURIComponent(encodedPattern); const strict = (queryParams.get("strict") ?? "true") === "true"; // default to true const view = fragmentPaths[0];