You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Redirect does not append base path for non-absolute URLs, so when you use Flight::redirect('somewhere'); and your installation is not in root, it won't redirect properly.
This is the fix - Flight.php, line 367:
(I don't know how to send differently, new to Github)
public static function _redirect($url, $code = 303) {
// If this is not an absolute URL, add the base path
if (!strpos($url, '//') || strpos($url, 'http://')) {
$url = self::request()->base.'/'.$url;
}
(...)
Btw, thanks for such a cool framework :)
Cheers
The text was updated successfully, but these errors were encountered:
Hi Mike,
Redirect does not append base path for non-absolute URLs, so when you use Flight::redirect('somewhere'); and your installation is not in root, it won't redirect properly.
This is the fix - Flight.php, line 367:
(I don't know how to send differently, new to Github)
Btw, thanks for such a cool framework :)
Cheers
The text was updated successfully, but these errors were encountered: