mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fix redirect back after failing login
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40630 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
5fadf838c0
commit
30fc2e2a50
@ -204,7 +204,6 @@ class Director {
|
|||||||
static function redirectBack() {
|
static function redirectBack() {
|
||||||
$url = (isset($_REQUEST['_REDIRECT_BACK_URL'])) ? $_REQUEST['_REDIRECT_BACK_URL'] : $_SERVER['HTTP_REFERER'];
|
$url = (isset($_REQUEST['_REDIRECT_BACK_URL'])) ? $_REQUEST['_REDIRECT_BACK_URL'] : $_SERVER['HTTP_REFERER'];
|
||||||
Director::redirect($url);
|
Director::redirect($url);
|
||||||
die();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static function currentURLSegment() {
|
static function currentURLSegment() {
|
||||||
|
Loading…
Reference in New Issue
Block a user