title: CodeIgniter view anchor tag prepending host
body: <p>In my view I'm trying to create an anchor tag but CodeIgniter is prepending my entire host before what I specify as href, therefor making it invalid.
  I put this</p>
  
  <pre><code>&lt;a href="file://////path_to/file/file.jpg"&gt;My File&lt;/a&gt;
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>&lt;a href="http://localhost/index.php/file://////path_to/file/file.jpg"&gt;My File&lt;/a&gt;
  </code></pre>
  
  <p>EDIT 3
  This is my view, I realise i should not be calling a function in my view but in this case I had little option as something needs to get applied for each data item in the loop, I will try to change this but thats beyond my problem right now.
  Wesley: I checked the soruce and it displays correctly in the source but in the browser it preappends the host so I guess this has nothing to do with code igniter afterall! How do I make sure it doesn't happen?</p>
  
  <pre><code>            &lt;td&gt;&lt;?php 
              $this-&gt;ci = &amp;get_instance(); 
              echo $currentData["field_one"] . " - &lt;a href=\"file:://///" . $this-&gt;ci-&gt;myfunc($currentData["field_one"]); . "\"&gt;Log&lt;/a&gt;"; ?&gt;
              &lt;/td&gt; 
  </code></pre>
  
  <hr>
  
  <p>EDIT 4</p>
  
  <p><strong>my html source</strong></p>
  
  <pre><code>&lt;a href="file:://///\\myhost.local.com\120"&gt;
  View Log
  &lt;/a&gt;
  </code></pre>
  
  <p><strong>my url address bar</strong></p>
  
  <pre><code>http://myhost.local.com/myhostlocal/index.php/level/one/type/b/cc/ee/
  </code></pre>
  
  <p><strong>the url it goes too when I mouse over the href</strong></p>
  
  <pre><code>http:///myhostlocal/index.php/level/one/type/b/cc/ee/file:://///\\myhost.local.com\120
  </code></pre>