I would like to pass a variable into the url when the modal is opened. To achieve that i'm using jquery to set url and then open the modal.
Now my problem is that the modal is getting closed even if i try to open it with jquery .modal('show')
value = 5;
window.location = 'http://localhost:8080/gorr/send.php?o=histlist&sid=value;
$('#sendCertificatesModal').modal('show');