Skip to content

Commit 88a31cc

Browse files
authored
Update IndexController.java
1 parent 1ec66ce commit 88a31cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ForestBlog/src/main/java/com/liuyanzhao/ssm/blog/controller/home/IndexController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public String search(
9393
//最新评论
9494
List<Comment> recentCommentList = commentService.listRecentComment(null, 10);
9595
model.addAttribute("recentCommentList", recentCommentList);
96-
model.addAttribute("pageUrlPrefix", "/search?pageIndex");
96+
model.addAttribute("pageUrlPrefix", "/search?keywords=" + keywords + "&pageIndex");
9797
return "Home/Page/search";
9898
}
9999

0 commit comments

Comments
 (0)