title: Button to submit form data to another URL containing #
body: <p>This is my HTML:</p>
  <pre><code>&lt;form action=&quot;http://example.com/rezervari/index.html#/hotelbooking&quot; method=&quot;get&quot;&gt;
  
      &lt;input type=&quot;hidden&quot; name=&quot;hotel&quot; value=&quot;&lt;?= $hotel ?&gt;&quot; class=&quot;form-control&quot;&gt;
      &lt;input type=&quot;hidden&quot; name=&quot;roomtypegroups&quot; value=&quot;&lt;?= $roomtypegroups ?&gt;&quot; class=&quot;form-control&quot;&gt;
  
      &lt;div class=&quot;form-row&quot;&gt;
          &lt;div class=&quot;col&quot;&gt;
              &lt;div class=&quot;form-group&quot;&gt;
                  &lt;label&gt;Sosire&lt;/label&gt;
                  &lt;div class=&quot;input-group mb-3&quot;&gt;
                      &lt;input id=&quot;from&quot; type=&quot;text&quot; name=&quot;from&quot; value=&quot;&lt;?= $arrival == 'CURRENT' ? date('Y-m-d') : $arrival ?&gt;&quot; class=&quot;form-control datepicker1&quot;&gt;
                      &lt;div class=&quot;input-group-append datepicker1-h&quot;&gt;
  &lt;span class=&quot;input-group-text&quot; id=&quot;basic-addon2&quot;&gt;&lt;i class=&quot;fa fa-calendar-check-o&quot; aria-hidden=&quot;true&quot;&gt;&lt;/i&gt;&lt;/span&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class=&quot;col&quot;&gt;
              &lt;div class=&quot;form-group&quot;&gt;
                  &lt;label&gt;Plecare&lt;/label&gt;
                  &lt;div class=&quot;input-group mb-3&quot;&gt;
                      &lt;input id=&quot;to&quot; type=&quot;text&quot; name=&quot;to&quot; value=&quot;&lt;?= $arrival == 'CURRENT' ? date('Y-m-d', strtotime(date('Y-m-d') . ' ' . $departure . ' day')) : date('Y-m-d', strtotime($arrival . ' ' . $departure . ' day')) ?&gt;&quot; class=&quot;form-control datepicker2&quot;&gt;
                      &lt;div class=&quot;input-group-append datepicker2-h&quot;&gt;
  &lt;span class=&quot;input-group-text&quot; id=&quot;basic-addon2&quot;&gt;&lt;i class=&quot;fa fa-calendar-times-o&quot; aria-hidden=&quot;true&quot;&gt;&lt;/i&gt;&lt;/span&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  <p>When I submit the form, the URL loses the &quot;#&quot; and messes it up, and that's no good because the query doesn't work on the secondary website, as it becomes:</p>
  <p><a href="http://example.com/rezervari/index.html?hotel=14315&amp;roomtypegroups=44332&amp;from=2020-11-23&amp;to=2020-11-24&amp;roomscount=1&amp;adult=1#/hotelbooking" rel="nofollow noreferrer">http://example.com/rezervari/index.html?hotel=14315&amp;roomtypegroups=44332&amp;from=2020-11-23&amp;to=2020-11-24&amp;roomscount=1&amp;adult=1#/hotelbooking</a></p>
  <p>Instead, it should be:</p>
  <p><a href="http://example.com/rezervari/index.html#/hotelbooking?hotel=14315&amp;roomtypegroups=44332&amp;from=2020-09-91&amp;to=2020-09-14&amp;adult=1&amp;numchild1=1&amp;numchild2=1&amp;numchild3=1" rel="nofollow noreferrer">http://example.com/rezervari/index.html#/hotelbooking?hotel=14315&amp;roomtypegroups=44332&amp;from=2020-09-91&amp;to=2020-09-14&amp;adult=1&amp;numchild1=1&amp;numchild2=1&amp;numchild3=1</a></p>
  <p>How can I pass on the link without the &quot;#&quot; getting removed and the whole URL messed up? Thanks!</p>