From 39954efef3c79cab47b9816174929b380261ba10 Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Mon, 22 Apr 2024 14:01:02 +0200 Subject: [PATCH] bugfix navigator with query --- src/3rd/js/three/navigator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/3rd/js/three/navigator.js b/src/3rd/js/three/navigator.js index fd049df..5470494 100644 --- a/src/3rd/js/three/navigator.js +++ b/src/3rd/js/three/navigator.js @@ -123,7 +123,7 @@ xrf.navigator.init = () => { window.addEventListener('popstate', function (event){ if( !xrf.navigator.updateHash.active ){ // ignore programmatic hash updates (causes infinite recursion) - xrf.navigator.to( document.location.href.replace(/\?/,'') ) + xrf.navigator.to( document.location.href.replace(/.*\?/,'') ) } })