I am closing a Cookie Consent Popup using the following code;
<script>
jQuery( document ).ready( function( $ ) {
$( document ).on( 'click', '.close-popup', function( event ){
elementorProFrontend.modules.popup.closePopup( {}, event );
});
});
</script>
I get the expected functionality however, it redirects to the current page plus /# how can I fix this to not redirect or add the /# to the website?
Thanks.