diff --git a/common/framework/Router.php b/common/framework/Router.php index b2302180b..9fb82b2ae 100644 --- a/common/framework/Router.php +++ b/common/framework/Router.php @@ -636,6 +636,9 @@ class Router } }, $route); + // Replace unnecessary regexp. + $route = preg_replace('/\\.[*+?]/', '', $route); + // Add a query string for the remaining arguments. return $route . (count($vars) ? ('?' . http_build_query($vars)) : ''); }