From 79dfa0d88cd818d64ea51da5713c162537171761 Mon Sep 17 00:00:00 2001 From: gouki Date: Wed, 9 Sep 2026 21:28:03 +0000 Subject: [PATCH] fix(routes): remove duplicate /tag/{name} legacy route shadowing canonical --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()));