diff --git a/src/main/java/com/fastcampus/projectboard/controller/ArticleController.java b/src/main/java/com/fastcampus/projectboard/controller/ArticleController.java index ed657a6..32db255 100644 --- a/src/main/java/com/fastcampus/projectboard/controller/ArticleController.java +++ b/src/main/java/com/fastcampus/projectboard/controller/ArticleController.java @@ -42,6 +42,7 @@ public String articles( map.addAttribute("articles", articles); map.addAttribute("paginationBarNumbers", barNumbers); map.addAttribute("searchTypes", SearchType.values()); + map.addAttribute("searchTypeHashtag", SearchType.HASHTAG); return "articles/index"; } @@ -53,6 +54,7 @@ public String article(@PathVariable Long articleId, ModelMap map) { map.addAttribute("article", article); map.addAttribute("articleComments", article.articleCommentsResponse()); map.addAttribute("totalCount", articleService.getArticleCount()); + map.addAttribute("searchTypeHashtag", SearchType.HASHTAG); return "articles/detail"; }