Commit a414bbfc authored by Taylor Otwell's avatar Taylor Otwell

Remove any unspecified optional parameters from URIs created from routes.

parent 23e100aa
......@@ -79,6 +79,8 @@ class URL {
$uri = preg_replace('/\(.+?\)/', $parameter, $uri, 1);
}
$uri = str_replace(array('/(:any?)', '/(:num?)'), '', $uri);
return static::to($uri, $https);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment