redirectTo
Closed this issue · 2 comments
mediaslave commented
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();
}
mediaslave commented
Rails redirectTo is much more complicated than that of Phrails.
Right now Phrails only supports redirectTo an internal app path.
mediaslave commented
redirectTo needs to be more flexible to handle multiple types of redirecting