diff --git a/src/Util/Exception/RedirectException.php b/src/Util/Exception/RedirectException.php index b28e4cd827..dce2abba58 100644 --- a/src/Util/Exception/RedirectException.php +++ b/src/Util/Exception/RedirectException.php @@ -46,7 +46,7 @@ class RedirectException extends Exception throw new ServerException(_m('Can not redirect to outside the website from here'), 5400); // 500 Internal server error (likely a bug) } } - $this->redirect_response = new RedirectResponse($url); + $this->redirect_response = new RedirectResponse($url, $code); } parent::__construct($message, $code, $previous_exception); }