diff --git a/plugins/system/redirect/redirect.php b/plugins/system/redirect/redirect.php index 142edb6a2fbf1..63d41d17e0b27 100644 --- a/plugins/system/redirect/redirect.php +++ b/plugins/system/redirect/redirect.php @@ -246,6 +246,14 @@ private static function doErrorHandling($error) } } - JErrorPage::render($error); + // Proxy to the previous exception handler if available, otherwise just render the error page + if (self::$previousExceptionHandler) + { + call_user_func_array(self::$previousExceptionHandler, array($error)); + } + else + { + JErrorPage::render($error); + } } }