fix(routes): remove duplicate /tag/{name} legacy route shadowing canonical
This commit is contained in:
+1
-1
@@ -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()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user