diff --git a/system/src/Grav/Common/Grav.php b/system/src/Grav/Common/Grav.php index 458fe16c6f..59e19d9db2 100644 --- a/system/src/Grav/Common/Grav.php +++ b/system/src/Grav/Common/Grav.php @@ -320,7 +320,7 @@ public function redirect($route, $code = null) $route = preg_replace("#^\/[\\\/]+\/#", '/', $route); // Check for code in route - $regex = '/.*(\[(30[1-7])\])$/'; + $regex = '/.*(\[(30[1-7])\]).*/'; preg_match($regex, $route, $matches); if ($matches) { $route = str_replace($matches[1], '', $matches[0]);