kohana/core — pull request #171 by cphrmky (2011-11-03 18:38:26+00:00)
Title: Calls to Kohana_Request redirect() that execute in a sub-request result i

Calls to Kohana_Request redirect() that execute in a sub-request result in the return value of Request::$initial->execute() ( in the initial non sub-request request ) being an empty string instead of an instance of Response. I've added one line to redirect() to simply return NULL ( but not exit ) if the currently executing request isn't the initial. With this in place calls to redirect in sub-requests (which are *everywhere* in apps that want pre-HMVC code) still return a response object so you can $response->status() and whatever else.