From 6788c528cf83e1e14a043e5061ed9ab765a89737 Mon Sep 17 00:00:00 2001 From: FreddleSpl0it <75116288+FreddleSpl0it@users.noreply.github.com> Date: Mon, 17 Jan 2022 21:39:54 +0100 Subject: [PATCH] [WebAuthn] fix reload --- data/web/templates/base.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/web/templates/base.twig b/data/web/templates/base.twig index a5e61ab3..d6f6d0b8 100644 --- a/data/web/templates/base.twig +++ b/data/web/templates/base.twig @@ -385,7 +385,7 @@ function recursiveBase64StrToArrayBuffer(obj) { }).then(json => { if (json.success) { // reload on success - window.location.href = window.location.href; + window.location = window.location.href.split("#")[0]; } else { throw new Error(json.msg); }