diff --git a/system/url.php b/system/url.php index c3fc53a0..c7b0e6ed 100644 --- a/system/url.php +++ b/system/url.php @@ -79,6 +79,8 @@ public static function to_route($name, $parameters = array(), $https = false) $uri = preg_replace('/\(.+?\)/', $parameter, $uri, 1); } + $uri = str_replace(array('/(:any?)', '/(:num?)'), '', $uri); + return static::to($uri, $https); }