From 4be7f200dd5c6e70ef7ce1427df11fa8f13ad18b Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Fri, 21 Apr 2023 14:43:36 +0800 Subject: [PATCH] * Fix bug #34574. --- lib/base/front/front.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/front/front.class.php b/lib/base/front/front.class.php index 30d8ccf67d..e00226eae8 100644 --- a/lib/base/front/front.class.php +++ b/lib/base/front/front.class.php @@ -529,7 +529,7 @@ class baseHTML if(!isset($matches[2])) $matches[2] = $config->default->method; if(!in_array($matches[1], array($config->default->module, 'search')) or !in_array($matches[2], array($config->default->method, 'buildquery'))) { - if($matches[1] != $currentModule or $matches[2] != $currentMethod) + if($matches[1] != 'index' and ($matches[1] != $currentModule or $matches[4] != $currentMethod)) { $gobackList[$tab] = $referer; $gobackLink = $referer;