title: Codeigniter uri undefined. Broken on home page, fine on search page
body: <p>I have a site set up where there is a route for profile/username that goes to page/profile/username</p>
  
  <p>I set up a bunch of results on the home page that link to profile/username. When you click one of those links the url has undefined as one of the segments. But if you click the same link from the search results page, it works fine. This is best seen by just looking at the site...</p>
  
  <p>The url is <a href="http://www.findtheguides.com" rel="nofollow">http://www.findtheguides.com</a>. If you look towards the bottom, and you click to visit one of their profiles, you'll see the uri segment is undefined and there are errors displaying.</p>
  
  <p>If you go to the search page here: <a href="http://www.findtheguides.com/page/start_search" rel="nofollow">http://www.findtheguides.com/page/start_search</a> and you click to visit one of their profiles, it works completely fine.</p>
  
  <p>In both instances i'm sending using the code:</p>
  
  <pre><code>&lt;a href="&lt;?php echo site_url('profile/'.$guide['username']); ?&gt;"&gt;view profile&lt;/a&gt;
  </code></pre>
  
  <p>Any help is appreciated. Thanks.</p>