bugfix navigator with query

This commit is contained in:
Leon van Kammen 2024-04-22 14:01:02 +02:00
parent 7f8ffca589
commit 39954efef3
1 changed files with 1 additions and 1 deletions

View File

@ -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(/.*\?/,'') )
}
})