diff --git a/app/Util/Lexer/RestrictedNames.php b/app/Util/Lexer/RestrictedNames.php index c2a32aac2..dc8f45425 100644 --- a/app/Util/Lexer/RestrictedNames.php +++ b/app/Util/Lexer/RestrictedNames.php @@ -99,6 +99,9 @@ class RestrictedNames 'mix-manifest.json', 'robots.txt', + // Horizon + 'horizon', + // Reserved routes 'a', 'app', diff --git a/routes/web.php b/routes/web.php index d4188fe96..b361ba3af 100644 --- a/routes/web.php +++ b/routes/web.php @@ -526,6 +526,8 @@ Route::domain(config('pixelfed.domain.app'))->middleware(['localization'])->grou }); Route::get('g/{hid}', [GroupController::class, 'groupShortLinkRedirect']); + Route::redirect('/horizon', '/admin/horizon'); + Route::get('stories/{username}', [ProfileController::class, 'stories']); Route::get('p/{id}', [StatusController::class, 'shortcodeRedirect']); Route::get('c/{collection}', [CollectionController::class, 'show']);