// Fix link in backoffice with multishop
This commit is contained in:
@@ -1628,8 +1628,7 @@ class AdminControllerCore extends Controller
|
||||
$this->redirect_after = $this->context->link->getAdminLink('AdminLogin').(!isset($_GET['logout']) ? '?redirect='.$_SERVER['REQUEST_URI'] : '');
|
||||
|
||||
// Set current index
|
||||
$current_index = $_SERVER['SCRIPT_NAME'].(($controller = Tools::getValue('controller')) ? '?controller='.$controller : '');
|
||||
|
||||
$current_index = __PS_BASE_URI__.ltrim($_SERVER['SCRIPT_NAME'], '/').(($controller = Tools::getValue('controller')) ? '?controller='.$controller : '');
|
||||
if ($back = Tools::getValue('back'))
|
||||
$current_index .= '&back='.urlencode($back);
|
||||
self::$currentIndex = $current_index;
|
||||
|
||||
Reference in New Issue
Block a user