title: Contact form 7 error on submit
body: <p>first of all, i'm using </p>
  
  <blockquote>
    <p>contact form 7</p>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
    <p>really simple captcha</p>
  </blockquote>
  
  <p>My form is located at this URL: <strong>mysite.com/#summary</strong></p>
  
  <p>When i click on submit, the form redirects me here: <strong>mysite.com/#wpcf7-f5514-p986-o1</strong> instead of submitting the form properly.</p>
  
  <p>Here's my network tab:</p>
  
  <p><img src="https://i.stack.imgur.com/vGyeh.png" alt="enter image description here"></p>
  
  <p>As you can see, <strong>#wpcf7-f5514-p986-o1</strong> is the value for <strong>_wpcf7_unit_tag</strong> sent with the ajax as well as the action url for the form (as you can see in the picture below):</p>
  
  <p><img src="https://i.stack.imgur.com/6SNsk.png" alt="enter image description here"></p>
  
  <p>After i get to <strong>mysite.com/#wpcf7-f5514-p986-o1</strong>, I also get two errors:</p>
  
  <pre><code> Warning: unlink(C:/src/hg-www/wp-content/uploads/wpcf7_captcha/1819614282.png): Permission denied in C:\src\hg-www\wp-content\plugins\really-simple-captcha\really-simple-captcha.php on line 225
  </code></pre>
  
  <p>and</p>
  
  <pre><code>Warning: unlink(C:/src/hg-www/wp-content/uploads/wpcf7_captcha/1819614282.txt): Permission denied in C:\src\hg-www\wp-content\plugins\really-simple-captcha\really-simple-captcha.php on line 225
  </code></pre>
  
  <p>I don't really know what's wrong and how to solve it.</p>
  
  <p>Any suggestions? </p>
  
  <p>Some additional info:</p>
  
  <ul>
  <li><strong>wordpress</strong> version is <strong>4.4.2</strong></li>
  <li><strong>Contact form 7</strong> version is <strong>4.2.1</strong></li>
  <li><strong>Really simple catcha</strong> version is <strong>1.8.0.1</strong></li>
  </ul>
  
  <p>The printed contact form code (if needed) is the following:</p>
  
  <pre><code>    &lt;form name="" action="/create-your-system/#wpcf7-f5514-p986-o1" method="post" class="wpcf7-form" novalidate="novalidate"&gt;
  &lt;div style="display: none;"&gt;
  &lt;input type="hidden" name="_wpcf7" value="5514"&gt;
  &lt;input type="hidden" name="_wpcf7_version" value="4.1"&gt;
  &lt;input type="hidden" name="_wpcf7_locale" value="en_US"&gt;
  &lt;input type="hidden" name="_wpcf7_unit_tag" value="wpcf7-f5514-p986-o1"&gt;
  &lt;input type="hidden" name="_wpnonce" value="ff2e2b253a"&gt;
  &lt;/div&gt;
  &lt;div class="wordpress-more-info-dropdown-div" id="dys-request-callback-dropdown"&gt;
  &lt;div id="contact-more-info-dropdown" class="wordpress-more-info-dropdown-div-label"&gt;
  &lt;span&gt;Request a callback to discuss your quote&lt;/span&gt;
  &lt;img class="wordpress-more-info-dropdown-div-arrow" alt="Heat Genius – Remote Heating Control" src="/img/default-images/wordpress-drop-down-more-infos-arrow.png"&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="inner-container"&gt;
  &lt;div class="HG-dys-contact-form-request-callback-container hideErrors" id="DYS-request-callback-container" style="display: block;"&gt;
  &lt;div class="left-column-contact-page"&gt;&lt;div class="long-inputs"&gt;&lt;p&gt;Name (required)&lt;br&gt;&lt;span class="wpcf7-form-control-wrap your-name"&gt;
  &lt;input type="text" name="your-name" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required" aria-required="true" aria-invalid="false"&gt;
  &lt;/span&gt;
  &lt;/p&gt;&lt;p&gt;Email address (required)&lt;br&gt;&lt;span class="wpcf7-form-control-wrap your-email"&gt;
  &lt;input type="email" name="your-email" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-email wpcf7-validates-as-required wpcf7-validates-as-email" aria-required="true" aria-invalid="false"&gt;
  &lt;/span&gt;
  &lt;/p&gt;
  &lt;p&gt;Phone (required)&lt;br&gt;&lt;span class="wpcf7-form-control-wrap your-phone"&gt;
  &lt;input type="text" name="your-phone" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required" aria-required="true" aria-invalid="false"&gt;&lt;/span&gt;
  &lt;/p&gt;
  &lt;p&gt;Post Code&lt;br&gt;&lt;span class="wpcf7-form-control-wrap your-postcode"&gt;&lt;input type="text" name="your-postcode" value="" size="40" class="wpcf7-form-control wpcf7-text" aria-invalid="false"&gt;&lt;/span&gt;
  &lt;/p&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="right-column-contact-page"&gt;
  &lt;p&gt;Notes&lt;br&gt;&lt;span class="wpcf7-form-control-wrap your-message"&gt;&lt;textarea name="your-message" cols="40" rows="10" class="wpcf7-form-control wpcf7-textarea" aria-invalid="false"&gt;&lt;/textarea&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;p&gt;&lt;span class="wpcf7-form-control-wrap your-UID"&gt;&lt;input type="hidden" name="your-UID" value="0b7f755668ad9ef6d1bf33b2e4302e3d72fb3dd9da089868566a7012dd0469b7" size="40" class="wpcf7-form-control wpcf7-text" id="hg-system-uid" aria-invalid="false"&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/div&gt;
  &lt;p&gt;Insert captcha&lt;br&gt;
  &lt;input type="hidden" name="_wpcf7_captcha_challenge_captcha-349" value="1819614282"&gt;
  &lt;img class="wpcf7-form-control wpcf7-captchac wpcf7-captcha-captcha-349 captcha" width="84" height="28" alt="captcha" src="http://192.168.1.250/wp-content/uploads/wpcf7_captcha/1819614282.png"&gt;&lt;br&gt;
  &lt;span class="wpcf7-form-control-wrap captcha-349"&gt;
  &lt;input type="text" name="captcha-349" value="" size="40" class="wpcf7-form-control wpcf7-captchar captchaText" aria-invalid="false"&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;div class="clearfix"&gt;
  &lt;/div&gt;
  &lt;p class="contact-form-submit-button"&gt;&lt;input type="submit" value="Send" class="wpcf7-form-control wpcf7-submit"&gt;&lt;/p&gt;
  &lt;div class="wpcf7-response-output wpcf7-display-none"&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Ok, the problem seams to be the <strong>#</strong> as the url where the form is stored is <strong>mysite.com/#summary</strong> and apparently the hash in the url get replaced by the contact action url (which contains an hash as well).</p>
  
  <p>I just tried the same settings in <strong>mysite.com/</strong> and it worked.</p>
  
  <p>So now my question is: I can't get rid of the hash as it is part of an applcations, what can i do to avoid the replacing of the hash but still being able to send and use the form correctly?</p>
  
  <p><strong>Contact form 7 settings:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/W7fE1.png" alt="enter image description here"></p>
  
  <p><strong>Form content</strong></p>
  
  <pre><code>&lt;div class="wordpress-more-info-dropdown-div" id="dys-request-callback-dropdown"&gt;
  &lt;div id="contact-more-info-dropdown" class="wordpress-more-info-dropdown-div-label"&gt;
  &lt;span&gt;Request a callback to discuss your quote&lt;/span&gt;&lt;img class="wordpress-more-info-dropdown-div-arrow" alt="Heat Genius – Remote Heating Control" src="/img/default-images/wordpress-drop-down-more-infos-arrow.png"&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="inner-container"&gt;
  &lt;div class="HG-dys-contact-form-request-callback-container" id="DYS-request-callback-container" &gt;
  &lt;div class="left-column-contact-page"&gt;
  &lt;div class="long-inputs"&gt;
      &lt;p&gt;Name (required)&lt;br&gt;[text* your-name]&lt;/p&gt;
      &lt;p&gt;Email address (required)&lt;br&gt;[email* your-email]&lt;/p&gt;
      &lt;p&gt;Phone (required)&lt;br&gt;[text* your-phone]&lt;/p&gt;
      &lt;p&gt;Post Code&lt;br&gt;[text your-postcode]&lt;/p&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="right-column-contact-page"&gt;
      &lt;p&gt;Notes&lt;br&gt;[textarea your-message]&lt;/p&gt;
      &lt;p&gt;[text your-UID id:hg-system-uid]&lt;/p&gt;
  &lt;/div&gt;
  &lt;p&gt;Insert captcha&lt;br /&gt;
  [captchac captcha-349 class:captcha size:l]
  [captchar captcha-349 class:captchaText]
  &lt;div class="clearfix"&gt;&lt;/div&gt;
  &lt;p class="contact-form-submit-button"&gt;[submit "Send"]&lt;/p&gt;
  </code></pre>
  
  <p>and <strong>additional settings:</strong></p>
  
  <pre><code>on_sent_ok: "location = '/form/#requestCallback;'"
  </code></pre>