// Fix link in backoffice with multishop

This commit is contained in:
rGaillard
2011-11-25 17:52:44 +00:00
parent fe3148fb80
commit 086159c3dd
3 changed files with 11 additions and 18 deletions
+1 -2
View File
@@ -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;