// Fixed redirect link after logout
This commit is contained in:
1 parent
8f234437e3
commit
fe5348625b
1 file changed
+1
-1
@@ -1595,7 +1595,7 @@ class AdminControllerCore extends Controller
|
|||||||
$this->context->employee->logout();
|
$this->context->employee->logout();
|
||||||
|
|
||||||
if (!isset($this->context->employee) || !$this->context->employee->isLoggedBack())
|
if (!isset($this->context->employee) || !$this->context->employee->isLoggedBack())
|
||||||
$this->redirect_after = 'login.php?redirect='.$_SERVER['REQUEST_URI'];
|
$this->redirect_after = 'login.php'.(!isset($_GET['logout']) ? '?redirect='.$_SERVER['REQUEST_URI'] : '');
|
||||||
|
|
||||||
// Set current index
|
// Set current index
|
||||||
$current_index = $_SERVER['SCRIPT_NAME'].(($controller = Tools::getValue('controller')) ? '?controller='.$controller : '');
|
$current_index = $_SERVER['SCRIPT_NAME'].(($controller = Tools::getValue('controller')) ? '?controller='.$controller : '');
|
||||||
|
|||||||
Reference in new issue
Block a user