diff --git a/routes/web.php b/routes/web.php index bfa4167..3f3185a 100644 --- a/routes/web.php +++ b/routes/web.php @@ -159,7 +159,7 @@ Route::get('/tagslist.html', fn () => redirect()->route('tags', [], 301)); Route::get('/comments-{page}.html', fn () => redirect()->route('comments', [], 301))->where('page', '\d+'); Route::get('/search-{page}.html', fn () => redirect()->route('search', [], 301))->where('page', '\d+'); Route::get('/reg.shtml', fn () => redirect()->route('register', [], 301)); -Route::get('/tag/{name}', [LegacyController::class, 'tagByName']); +// /tag/{name} 已是正典路由(tags.show),不再需要 LegacyController 中转 Route::get('/index.php', fn () => app(LegacyController::class)->resolveAction(request()));