From cae1e4ff018089ee6a654e6e7b97bfd8e1c2389f Mon Sep 17 00:00:00 2001 From: Sylvain Lesage Date: Mon, 5 Jun 2023 18:34:37 +0200 Subject: [PATCH] Fix URL params parsing Should fix https://github.com/simonw/datasette-lite/issues/70 --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index c64070b..0c7722d 100644 --- a/index.html +++ b/index.html @@ -108,7 +108,7 @@ return url; } -const urlParams = new URLSearchParams(location.search); +const urlParams = new URLSearchParams(encodeURI(location.search)); const initialUrl = fixUrl(urlParams.get('url')); const memory = !!urlParams.get('memory'); const metadataUrl = fixUrl(urlParams.get('metadata'));