Explorar o código

[WebAuthn] fix reload

FreddleSpl0it %!s(int64=3) %!d(string=hai) anos
pai
achega
6788c528cf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      data/web/templates/base.twig

+ 1 - 1
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);
                 }