Merge pull request #7212 from pixelfed/shleeable-patch-1

Add redirect for Horizon dashboard
pull/7213/head
Shlee 2 weeks ago committed by GitHub
commit cd9ae147ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -493,6 +493,10 @@ Route::domain(config('pixelfed.domain.app'))->middleware(['localization'])->grou
Route::get('auth/invite/a/{code}', [AdminInviteController::class, 'index']);
Route::post('api/v1.1/auth/invite/admin/re', [AdminInviteController::class, 'apiRegister'])->middleware('throttle:5,1440');
// Laravel 13's Horizon no longer redirects the base path to its dashboard,
// so /horizon 404s by default. Redirect admins from /horizon to /horizon/dashboard.
Route::redirect('horizon', 'horizon/dashboard')->middleware('admin');
Route::redirect('groups/', '/groups/home');
Route::redirect('groups/home', '/groups/feed');

Loading…
Cancel
Save