title: Kohana 3 URL::base method returns bad URL on HTTPS
body: <p>I'm on Kohana 3.2 and I need to deploy the same application to an HTTP server and a HTTPS server. In the head of my HTML I have my always loved:</p>
  
  <pre><code>&lt;base href="&lt;? echo URL::base(TRUE) ?&gt;"&gt;
  </code></pre>
  
  <p>That's one of the best things I discovered for my views. The problem is that this is the first time I'm deploying to a HTTPS and it returns the wrong URL. This is the URL I request: <a href="https://s37839.gridserver.com/external/discovery/fbtabs/tlc_y_curiosidad/index.php/app/320141391342439" rel="nofollow">https://s37839.gridserver.com/external/discovery/fbtabs/tlc_y_curiosidad/index.php/app/320141391342439</a></p>
  
  <p>This is what URL::base(TRUE) returns: <code>http://s37839.gridserver.com:443/external/discovery/fbtabs/tlc_y_curiosidad/</code> (Note the "http://" and the 443 port.)
  With this, the page doesn't load the assets correctly. You can check the page source for yourself.</p>
  
  <p>I hope it's clear. Please let me know. Thanks a lot!</p>