title: url::to(xxx/yyy) returns different results depending on context
body: <p>I'm using the <code>URL::to</code> call to embed a link in an outgoing mail message. What I get when I do this is something like: "<code>baseroot/public/index.php/xxx/yyy</code>".</p>
  
  <p>And yet when I do the same call, for example, within a <code>route</code> call, I get "<code>baseroute/xxx/yyy</code>".</p>
  
  <p>Any idea?</p>