From 9b3dd2b2e86ef2edca6a38b3bdf44988547909c0 Mon Sep 17 00:00:00 2001 From: Chris Friemann Date: Wed, 24 Jan 2024 15:49:03 +0100 Subject: [PATCH] fix: feedback for redirect instead of location --- src/app/Http/Controllers/AdminController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/Http/Controllers/AdminController.php b/src/app/Http/Controllers/AdminController.php index 6e9032b..18f1380 100644 --- a/src/app/Http/Controllers/AdminController.php +++ b/src/app/Http/Controllers/AdminController.php @@ -16,7 +16,7 @@ public function index() $userData = auth()->user(); if (!$userData) { - Inertia::location('/'); + return redirect('/'); } // Get the Statistics