Or tray this solution, change only name of admin panel (adminPanelName).
$productLink = _PS_BASE_URL_.__PS_BASE_URI__."adminPanelName/"; $productLink .= 'index.php?controller=AdminProducts'; $productLink .= '&token='.Tools::getAdminTokenLite('AdminProducts'); $productLink .= '&id_product='.(int) Tools::getvalue('id_product'); $productLink .= '&updateproduct&key_tab=Images&action=Images'; $this->context->smarty->assign(array( 'editLink' => $productLink ));