From bc470ef3db5e34e26147fe6f50e0457d24d1ee7c Mon Sep 17 00:00:00 2001
From: ArtOfCode- <hello@artofcode.co.uk>
Date: Wed, 1 Jul 2020 01:56:16 +0100
Subject: [PATCH] Actually link tags to new things

---
 app/views/posts/_article_list.html.erb | 2 +-
 app/views/posts/_expanded.html.erb     | 2 +-
 app/views/posts/_list.html.erb         | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/app/views/posts/_article_list.html.erb b/app/views/posts/_article_list.html.erb
index 01f889c88..39e2e5289 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 8e8c31685..1ef9d6160 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 84c106292..92ee948d8 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 %>
-- 
GitLab