From 978b1023d1e4a0c9cf34361ddf392853401b892c Mon Sep 17 00:00:00 2001 From: Astrid Date: Fri, 15 Sep 2023 04:58:32 +0200 Subject: [PATCH] Update webutil.js Use history API's replaceState() method to hide query for privacy --- app/webutil.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/webutil.js b/app/webutil.js index 6011442c..6a9349a0 100644 --- a/app/webutil.js +++ b/app/webutil.js @@ -36,6 +36,7 @@ export function getQueryVar(name, defVal) { if (typeof defVal === 'undefined') { defVal = null; } if (match) { + history.replaceState(null, "", window.location.pathname.slice(1, 1)); return decodeURIComponent(match[1]); }