mediaslave/phrails

redirectTo

Closed this issue · 2 comments

via @jarrinx

I think this update is now needed for Controller::redirectTo().

/ * Redirect to a different path; 
* * @return void 
* @author Justin Palmer 
*/
protected function redirectTo($path)
{
    //$path = ltrim($path, '/'); 
    //header('LOCATION:' . Registry::get('pr-domain-uri') . Registry::get('pr-install-path') . $path); 
    header('LOCATION:' . $path);
    exit();
}

Rails redirectTo is much more complicated than that of Phrails.

Right now Phrails only supports redirectTo an internal app path.

redirectTo needs to be more flexible to handle multiple types of redirecting