$(document).ready(function() {

  if(window.location.href.indexOf('#myModal') != -1) {
    $('#myModal').modal('show');
  }

});

@@ -61,23 +61,24 @@
 dexOf('#
-myModal
+thankyou
 ') != -1
@@ -93,15 +93,16 @@
 $('#
-myModal
+thankyou
 ').m

Update modal.js