title: CodeIgniter: current_url shows question mark
body: <p>Say my page is on:</p>
  
  <p><code>http://localhost/app1/profile/index/123/</code></p>
  
  <p>The result of current_url() is this:</p>
  
  <p><code>http://localhost/app1/?profile/index/123</code></p>
  
  <p>There is a <code>?</code> that shouldn't be there. The question mark seems to be caused by the following config setting:</p>
  
  <p><code>$config['enable_query_strings'] = TRUE;</code></p>
  
  <p>I need query strings enabled in my application. Any ideas what I need to do?</p>
  
  <p><strong>EDIT 1:</strong></p>
  
  <p>Also, in the case when the URL does have a query string, I need current_url to also return that. I'm hoping Phil Sturgeon's solution here <a href="https://stackoverflow.com/questions/4160377/codeigniter-current-url-doesnt-show-query-strings">CodeIgniter current_url doesn&#39;t show query strings</a> will help me. </p>
  
  <p>I'm using CI 2.1.0. </p>