From 3151e6326e202b3dfcc56258430caedc3c22cb35 Mon Sep 17 00:00:00 2001 From: filesite Date: Mon, 20 May 2024 18:35:10 +0800 Subject: [PATCH] improve dir switch --- themes/tajian/controller/MyController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/themes/tajian/controller/MyController.php b/themes/tajian/controller/MyController.php index 1ce62e8..73b752e 100644 --- a/themes/tajian/controller/MyController.php +++ b/themes/tajian/controller/MyController.php @@ -24,6 +24,7 @@ Class MyController extends SiteController { $myDirs = Common::getMyDirs($loginedUser['cellphone']); if (in_array($goDir, $myDirs)) { Common::switchUserDir($goDir); + return $this->redirect("/{$goDir}/my/"); } }