// Fix minor bug on shop urls #PSTEST-911
This commit is contained in:
1 parent
bcef979af3
commit
65a16aa3a7
1 file changed
+1
-1
@@ -1624,7 +1624,7 @@ class AdminControllerCore extends Controller
|
|||||||
Tools::redirectAdmin($this->context->link->getAdminLink('AdminLogin').(!isset($_GET['logout']) ? '&redirect='.$this->controller_name : ''));
|
Tools::redirectAdmin($this->context->link->getAdminLink('AdminLogin').(!isset($_GET['logout']) ? '&redirect='.$this->controller_name : ''));
|
||||||
|
|
||||||
// Set current index
|
// Set current index
|
||||||
$current_index = dirname($_SERVER['SCRIPT_NAME']).'/index.php'.(($controller = Tools::getValue('controller')) ? '?controller='.$controller : '');
|
$current_index = $this->context->shop->getBaseURI().basename(_PS_ADMIN_DIR_).'/index.php'.(($controller = Tools::getValue('controller')) ? '?controller='.$controller : '');
|
||||||
if ($back = Tools::getValue('back'))
|
if ($back = Tools::getValue('back'))
|
||||||
$current_index .= '&back='.urlencode($back);
|
$current_index .= '&back='.urlencode($back);
|
||||||
self::$currentIndex = $current_index;
|
self::$currentIndex = $current_index;
|
||||||
|
|||||||
Reference in new issue
Block a user