diff --git a/app/views/posts/_article_list.html.erb b/app/views/posts/_article_list.html.erb index 01f889c880418a50564011ad6ebab20a8c649048..39e2e52892bd2dc9d11719733fce7dbf02c5a3e4 100644 --- a/app/views/posts/_article_list.html.erb +++ b/app/views/posts/_article_list.html.erb @@ -33,7 +33,7 @@ <% required = required_ids&.include?(tag.id) ? 'is-filled' : '' %> <% topic = topic_ids&.include?(tag.id) ? 'is-outlined' : '' %> <% moderator = moderator_ids.include?(tag.id) ? 'is-red is-outlined' : '' %> - <%= link_to tag.name, questions_tagged_path(tag_set: tag_set.id, tag: tag.name), + <%= link_to tag.name, tag_path(id: post.category_id, tag_id: tag.id), class: "badge is-tag #{required} #{topic} #{moderator}" %> <% end %> </div> diff --git a/app/views/posts/_expanded.html.erb b/app/views/posts/_expanded.html.erb index 8e8c31685adb37fee949f75ed70588ef98fd4e75..1ef9d616001d9f704b02332c1e6050aa076e6b00 100644 --- a/app/views/posts/_expanded.html.erb +++ b/app/views/posts/_expanded.html.erb @@ -122,7 +122,7 @@ <% required = required_ids&.include?(tag.id) ? 'is-filled' : '' %> <% topic = topic_ids&.include?(tag.id) ? 'is-outlined' : '' %> <% moderator = moderator_ids.include?(tag.id) ? 'is-red is-outlined' : '' %> - <%= link_to tag.name, questions_tagged_path(tag_set: tag_set.id, tag: tag.name), + <%= link_to tag.name, tag_path(id: post.category_id, tag_id: tag.id), class: "badge is-tag #{required} #{topic} #{moderator}" %> <% end %> </div> diff --git a/app/views/posts/_list.html.erb b/app/views/posts/_list.html.erb index 84c10629287ab22f4ad9f233c7a49cf9309b3ab5..92ee948d832ab11ab889ed72608bbbb6f14d3f11 100644 --- a/app/views/posts/_list.html.erb +++ b/app/views/posts/_list.html.erb @@ -45,7 +45,7 @@ <% required = required_ids&.include?(tag.id) ? 'is-filled' : '' %> <% topic = topic_ids&.include?(tag.id) ? 'is-outlined' : '' %> <% moderator = moderator_ids.include?(tag.id) ? 'is-red is-outlined' : '' %> - <%= link_to tag.name, questions_tagged_path(tag_set: tag_set.id, tag: tag.name), + <%= link_to tag.name, tag_path(id: post.category_id, tag_id: tag.id), class: "badge is-tag #{required} #{topic} #{moderator}" %> <% end %> <% end %>