title: URL fragments and the BASE tag
body: <p>I'm using the <code>&lt;base&gt;</code> tag in an application to simplify development.</p>
  
  <p>I'm aware of the "<em>feature</em>" that occurs when an anchor is only a URL fragment, as in it routes to the <code>&lt;base&gt;</code> URL + fragment.</p>
  
  <p>What can I do to circumvent that? I've never fudged with <code>window.location</code> or anything in Javascript, and rather than hack around for awhile at it, I assume someone knows of a quick-and-dirty, or an example.</p>
  
  <p>Can this be circumvented? If so, please advise.</p>
  
  <p>(<em>I hate asking questions that suggest no attempt has been made, but I've been searching/reading to little avail</em>)</p>
  
  <p>(<em>Also; using jQuery, so any examples that would take advantage of vanilla Javascript or jQuery are welcome</em>)</p>
  
  <hr>
  
  <p><strong>jQuery solution I hacked together</strong>, not sure if its viable as a permanent solution though, thoughts?</p>
  
  <pre><code>$('a').each(function(index){
      if($(this).attr('href').indexOf('#') == 0){
          $(this).attr('href', (window.location.href).replace(/#.*$/, '')
              + $(this).attr('href'));
      }
  });
  </code></pre>