fixing bugs in router.

This commit is contained in:
Taylor Otwell
2012-02-12 19:26:16 -06:00
parent 775b97ee76
commit 74887986a7
3 changed files with 19 additions and 29 deletions

View File

@@ -244,7 +244,9 @@ class URL {
// should be generated with an HTTPS protocol string or just HTTP.
$https = array_get(current($route), 'https', false);
return static::to(static::transpose(key($route), $parameters), $https);
$uri = trim(static::transpose(key($route), $parameters), '/');
return static::to($uri, $https);
}
/**