Skip to content

Commit 055709a

Browse files
authored
Fix link since migration page
1 parent 3d4ac4e commit 055709a

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

classes/Form/ConfigurationForm.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function generate()
5353
$helper->module = $this->module;
5454
$helper->name_controller = $this->module->name;
5555
$helper->token = Tools::getAdminTokenLite('AdminModules');
56-
$helper->currentIndex = AdminController::$currentIndex . '&configure=' . $this->module->name;
56+
$helper->currentIndex = Context::getContext()->link->getAdminLink('AdminModules', true) . '&configure=' . $this->module->name . '&tab_module=' . $this->module->tab . '&module_name=' . $this->module->name;
5757

5858
// Language
5959
$helper->default_form_language = $default_lang;
@@ -67,11 +67,10 @@ public function generate()
6767
$helper->toolbar_btn = [
6868
'save' => [
6969
'desc' => $this->module->getTranslator()->trans('Save', [], 'Modules.Googleanalytics.Admin'),
70-
'href' => AdminController::$currentIndex . '&configure=' . $this->module->name . '&save=' . $this->module->name .
71-
'&token=' . $helper->token,
70+
'href' => Context::getContext()->link->getAdminLink('AdminModules', true) . '&configure=' . $this->module->name . '&tab_module=' . $this->module->tab . '&module_name=' . $this->module->name . '&save=' . $this->module->name,
7271
],
7372
'back' => [
74-
'href' => AdminController::$currentIndex . '&token=' . $helper->token,
73+
'href' => Context::getContext()->link->getAdminLink('AdminModules', true),
7574
'desc' => $this->module->getTranslator()->trans('Back to list', [], 'Modules.Googleanalytics.Admin'),
7675
],
7776
];

0 commit comments

Comments
 (0)