Skip to content

Commit 047a68f

Browse files
committed
v1.0.9 修复了标签中带/等特殊符号时出错的bug
1 parent 548999d commit 047a68f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/web.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
Route::get('/articles/list', 'ArticleController@list')->name('articles.list');
2222
Route::resource('/articles', 'ArticleController');
2323
Route::resource('/comments', 'CommentController');
24-
Route::get('/tags/{name}', 'TagController@show')->name('tags.show');
24+
Route::get('/tags/{name}', 'TagController@show')->name('tags.show')->where('name', '.*');
2525

2626
Route::middleware(['auth', 'super'])->namespace('Admin')->prefix('admin-api')->group(function () {
2727

0 commit comments

Comments
 (0)