From bb246d4f9eedb9208a0202608ba6fa506755d428 Mon Sep 17 00:00:00 2001 From: Kipjr <12066560+Kipjr@users.noreply.github.com> Date: Sat, 27 Jan 2024 14:54:55 +0100 Subject: [PATCH] Fix error handling based on discussion https://github.com/VSLCatena/mensa/pull/110#discussion_r1422951277 --- app/Exceptions/Handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index aa4e7e0e..39a87952 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -30,7 +30,7 @@ public function register(): void switch ($exception->getStatusCode()) { case 404: - return redirect(route('home')); + return $this->renderHttpException($exception); break; case '500': return redirect(route('home'));