From af0a271ae7e045b8071a166a0c820c80dd6e8e6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E9=87=91=E5=8B=87?= Date: Tue, 14 Oct 2025 16:14:33 +0800 Subject: [PATCH] * [apiv2] Fix createLink --- framework/api/helper.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/framework/api/helper.class.php b/framework/api/helper.class.php index 7c6168f15e..d265968bd1 100644 --- a/framework/api/helper.class.php +++ b/framework/api/helper.class.php @@ -203,12 +203,11 @@ class helper extends baseHelper { global $config; $link = parent::createLink($moduleName, $methodName, $vars, $viewType); - $pos = strpos((string) $link, '.php'); /* The requestTypes are: GET, PATH_INFO2, PATH_INFO */ if($config->requestType == 'GET') { - $link = $config->webRoot . 'index' . substr((string) $link, $pos); + $link = $config->webRoot . (string) substr($link, 2); } elseif($config->requestType == 'PATH_INFO2') {