From 29ea70fe33a18ebd2c0c5d8d32080a67b833e81a Mon Sep 17 00:00:00 2001 From: Chenjianyu Date: Mon, 7 Aug 2023 14:35:44 +0800 Subject: [PATCH] * fix a jump back app doesn't follow. --- module/ai/control.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/ai/control.php b/module/ai/control.php index 81f0ec746e..e6ab42ba7e 100644 --- a/module/ai/control.php +++ b/module/ai/control.php @@ -506,7 +506,7 @@ class ai extends control if(!empty($exit)) { unset($_SESSION['auditPrompt']); - return $this->send(array('result' => 'success', 'locate' => $this->inlink('promptview', "promptID=$promptId"))); + return $this->send(array('result' => 'success', 'locate' => $this->inlink('promptview', "promptID=$promptId") . '#app=admin')); } $prompt = $this->ai->getPromptByID($promptId); @@ -566,7 +566,7 @@ class ai extends control if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError())); if($backToTestingLocation) { - return $this->send(array('result' => 'success', 'message' => $this->lang->ai->prompts->action->publishSuccess, 'locate' => $this->inlink('promptview', "id=$id"))); + return $this->send(array('result' => 'success', 'message' => $this->lang->ai->prompts->action->publishSuccess, 'locate' => $this->inlink('promptview', "id=$id") . '#app=admin')); } return $this->send(array('result' => 'success'));