FacetWP – turn off URL hash functionality

<?php

// Add to your (child) theme's functions.php file

add_action( 'wp_head', function() {
?>
<script>
(function($) {
    $(document).on('facetwp-refresh', function() {
        if (! FWP.loaded) {
            FWP.set_hash = function() { /* empty */ }
        }
    });
})(jQuery);
</script>
<?php
}, 100 );