Index: branches/5.2.x/core/kernel/application.php =================================================================== diff -u -N -r15251 -r15252 --- branches/5.2.x/core/kernel/application.php (.../application.php) (revision 15251) +++ branches/5.2.x/core/kernel/application.php (.../application.php) (revision 15252) @@ -1,6 +1,6 @@ EventManager->notifySubscribers($event); + } + + /** * Allows to process any type of event * * @param kEvent $event @@ -2430,6 +2442,12 @@ $debug_mode = defined('DEBUG_MODE') && DEBUG_MODE; $skip_reporting = defined('DBG_SKIP_REPORTING') && DBG_SKIP_REPORTING; + if ( $exception instanceof kRedirectException ) { + /* @var $exception kRedirectException */ + + $exception->run(); + } + if ( !$this->exceptionHandlers || ($debug_mode && $skip_reporting) ) { // when debugger absent OR it's present, but we actually can't see it's error report (e.g. during ajax request) $this->errorDisplayFatal('' . get_class($exception) . ': ' . "{$errstr} in {$errfile} on line {$errline}");