Skip to content

Commit 3a134d9

Browse files
authored
Merge pull request #216 from Hlavtox/provide-absolute-url
Provide absolute URL to fix routing issues
2 parents 68cdac5 + 7ed9f9e commit 3a134d9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

productcomments.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ public function renderModerateLists()
455455
$helper->table = $this->name;
456456
$helper->table_id = 'waiting-approval-productcomments-list';
457457
$helper->token = Tools::getAdminTokenLite('AdminModules');
458-
$helper->currentIndex = AdminController::$currentIndex . '&configure=' . $this->name;
458+
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false, [], ['configure' => $this->name, 'tab_module' => $this->tab, 'module_name' => $this->name]);
459459
$helper->no_link = true;
460460

461461
$return .= $helper->generateList($comments, $fields_list);
@@ -480,7 +480,7 @@ public function renderModerateLists()
480480
$helper->table = $this->name;
481481
$helper->table_id = 'reported-productcomments-list';
482482
$helper->token = Tools::getAdminTokenLite('AdminModules');
483-
$helper->currentIndex = AdminController::$currentIndex . '&configure=' . $this->name;
483+
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false, [], ['configure' => $this->name, 'tab_module' => $this->tab, 'module_name' => $this->name]);
484484
$helper->no_link = true;
485485

486486
$return .= $helper->generateList($comments, $fields_list);
@@ -564,7 +564,7 @@ public function renderCriterionList()
564564
$helper->title = $this->trans('Review Criteria', [], 'Modules.Productcomments.Admin');
565565
$helper->table = $this->name . 'criterion';
566566
$helper->token = Tools::getAdminTokenLite('AdminModules');
567-
$helper->currentIndex = AdminController::$currentIndex . '&configure=' . $this->name;
567+
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false, [], ['configure' => $this->name, 'tab_module' => $this->tab, 'module_name' => $this->name]);
568568

569569
return $helper->generateList($criterions, $fields_list);
570570
}
@@ -585,7 +585,7 @@ public function renderCommentsList()
585585
$helper->table = $this->name;
586586
$helper->table_id = 'approved-productcomments-list';
587587
$helper->token = Tools::getAdminTokenLite('AdminModules');
588-
$helper->currentIndex = AdminController::$currentIndex . '&configure=' . $this->name;
588+
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false, [], ['configure' => $this->name, 'tab_module' => $this->tab, 'module_name' => $this->name]);
589589
$helper->no_link = true;
590590

591591
$page = ($page = Tools::getValue('submitFilter' . $helper->list_id)) ? (int) $page : 1;

0 commit comments

Comments
 (0)