fix(routes): remove duplicate /tag/{name} legacy route shadowing canonical
Build and Deploy / verify (push) Successful in 59s
Build and Deploy / deploy (push) Successful in 31s

This commit is contained in:
2026-09-09 21:28:03 +00:00
parent f5987e7cc2
commit 79dfa0d88c
+1 -1
View File
@@ -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('/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('/search-{page}.html', fn () => redirect()->route('search', [], 301))->where('page', '\d+');
Route::get('/reg.shtml', fn () => redirect()->route('register', [], 301)); 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())); Route::get('/index.php', fn () => app(LegacyController::class)->resolveAction(request()));