From df637d1b4bd5f55d1cc3bfe2f934fab0cfe39ffe Mon Sep 17 00:00:00 2001 From: Malek Tellissi Date: Sun, 13 Sep 2026 02:31:49 +0200 Subject: [PATCH] Handle GET /dashboard/logout to prevent 500 on direct URL access Filament logout only accepts POST; redirect GET requests to dashboard. Co-Authored-By: Claude Sonnet 4.6 --- routes/web.php | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/web.php b/routes/web.php index 5566445..26fc28a 100644 --- a/routes/web.php +++ b/routes/web.php @@ -8,6 +8,7 @@ Route::get('/', function () { }); Route::get('/dashboard/login', fn () => redirect()->route('auth.nextcloud')); +Route::get('/dashboard/logout', fn () => redirect('/dashboard')); Route::get('/oauth/redirect', [OAuthController::class, 'redirect'])->name('auth.nextcloud'); Route::get('/auth/nextcloud/callback', [OAuthController::class, 'callback'])->name('auth.nextcloud.callback');