title: Navigating via anchor tag causes empty ajax GET request
body: <p>During navigation via links with anchor tag (#) an emty ajax GET request to the current page is generated</p>
  
  <p>I have ajax dialogs which are shown by clicking  on links
  But I cant understand why an empty ajax GET request is generated
  <a href="https://i.stack.imgur.com/xJpzk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xJpzk.png" alt="enter image description here"></a></p>
  
  <p>Here is the javascript code which is binded to link</p>
  
  <pre><code> $(document).on('click', '[data-js-click]', function (event) {
      if ($(event.target).prop("tagName") != 'A') {
          var $self = $(this),
              $target = $($self.data('js-click') || 'a:first', $self);
          if ($target.length &amp;&amp; typeof $target[0].click === "function") {
              var docId = $(this).find("input[name='Filter.DocIds']").val();
              window.location.hash = 'edit_docid=' + docId;
              $target[0].click();
              return false;
          }
      }
  });
  </code></pre>
  
  <p>Commenting the line "window.location.hash = 'edit_docid=' + docId;" code fixes the problem, but I need to add this hash tag</p>