title: base href url breaks <a href> anchor for fancybox
body: <p>I've wrote some program that opens upon a link click. </p>
  
  <pre><code>&lt;a class="myclass" href="#openfancybox"&gt;Open Fancybox&lt;/a&gt;
  </code></pre>
  
  <p>It uses a fancybox, jQuery and everything works perfect.
  Once I implemented it into the project, it doesn't work. The problem is this code in the project:</p>
  
  <pre><code>&lt;base href="http://somesite.com/" /&gt;
  </code></pre>
  
  <p>It goes to the base url instead of opening a fancybox.</p>
  
  <p>I've tried to fix it using jQuery or javascript solutions but I had no luck.</p>
  
  <p>P.S. I don't want to remove <code>base</code> from the source code as it could break something else in the project (I have a task to implement my fancybox only).</p>
  
  <p>P.P.S. Also I would definitely prefer a pure javascript solution as far as I use jQuery for my fancybox, but conflicts with other frameworks are expected. The project is for Joomla.</p>