title: TypeError: 'assign' called on an object that does not implement interface Location
body: <p>First of all, I apologize for my English and hope, you will understand my issue.</p>
  
  <p>My once so well working script doesn't work anymore and I don't have a clue why.</p>
  
  <p>It's a formular in wordpress, which used <code>reCAPTCHA</code> and an <code>address-check API</code> to send an email with specific infos.</p>
  
  <p>The jQuery I am forced to use is: <code>1.12.4
  </code></p>
  
  <p>The form has the method <code>POST</code> and by clicking the submit button an <code>AJAX</code> function is called, which opens a <code>PHP script</code> that does things and send an email. </p>
  
  <p><b>The jQuery code:</b></p>
  
  <pre><code>$(document).ready(function(){
      $('#welltherm-planer').submit(function(event){
          $("#ueberlagerung").attr("style","");
          $("#infotext").attr("style","");
          $("#infotext").html("");
          event.preventDefault();
          ajaxFunktion();
      });
  
  }); 
  
  
  function ajaxFunktion(){
  
      $.ajax({
      type:"POST",
      url: "adresscheck.php",
      data: { 
          firstname   : $('#firstname').val(),
          lastname    : $('#lastname').val(),
          street      : $('#street').val(),
          hno         : $('#hno').val(),
          zip         : $('#zip').val(),
          city        : $('#city').val(),
          country     : $('#country').val(),
          phone       : $('#phone').val(),
          email       : $('#email').val(),
          url         : window.location,
          g_recaptcha_response: $('textarea#g-recaptcha-response').val()
      },
      success: function(data){
          $("#infotext").attr("style","background-color: #ff4400;color: #fff;padding: 8px 10px;");
          $("#infotext").html(data);
  
          if(data.indexOf("erhalten") &gt;= 0){ 
              $('input[type="submit"]').attr("style", "display:none;");
              }
        }
        });
  
  }
  </code></pre>
  
  <p>It seems that the <code>PHP script</code> doesn't even start. And if I click the submit button the browser console shows me the following error:</p>
  
  <pre><code>TypeError: 'assign' called on an object that does not implement interface Location. jquery.min.js:4:24986
  </code></pre>
  
  <p><a href="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js" rel="nofollow noreferrer">https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js</a></p>
  
  <p>What could be wrong? </p>
  
  <p>Kind regards,
  Katja</p>