From d292c8eefc570f9d6f3b85ff77f6dc1d94bcca0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Tue, 10 Mar 2026 23:05:28 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[pm]=20=ED=94=84=EB=A1=9C=EC=A0=9D?= =?UTF-8?q?=ED=8A=B8=20=EA=B4=80=EB=A6=AC=20HTMX=20=EB=B6=80=EB=B6=84=20?= =?UTF-8?q?=EB=A1=9C=EB=93=9C=20=EC=8B=9C=20HX-Redirect=20=EC=A0=81?= =?UTF-8?q?=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- app/Http/Controllers/ProjectManagementController.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/ProjectManagementController.php b/app/Http/Controllers/ProjectManagementController.php index 902dbfaa..95491aa9 100644 --- a/app/Http/Controllers/ProjectManagementController.php +++ b/app/Http/Controllers/ProjectManagementController.php @@ -6,6 +6,8 @@ use App\Models\Admin\AdminPmTask; use App\Services\ProjectManagement\ImportService; use App\Services\ProjectManagement\ProjectService; +use Illuminate\Http\Response; +use Illuminate\Http\Request; use Illuminate\View\View; class ProjectManagementController extends Controller @@ -17,8 +19,13 @@ public function __construct( /** * 프로젝트 관리 대시보드 */ - public function index(): View + public function index(Request $request): View|Response { + // HTMX 부분 로드 시 @push('scripts')가 실행되지 않으므로 전체 페이지 리로드 + if ($request->header('HX-Request')) { + return response('', 200)->header('HX-Redirect', route('pm.index')); + } + $summary = $this->projectService->getDashboardSummary(); $statuses = AdminPmProject::getStatuses(); $taskStatuses = AdminPmTask::getStatuses();