UX: adds <a> tag with href category box titles (#7901)

UX: adds tag with href category box titles (#7901)

This Ensures that category titles in category-boxes can be opened in a new tab.

diff --git a/app/assets/javascripts/discourse/templates/components/categories-boxes.hbs b/app/assets/javascripts/discourse/templates/components/categories-boxes.hbs
index 8c51088..8ae095c 100644
--- a/app/assets/javascripts/discourse/templates/components/categories-boxes.hbs
+++ b/app/assets/javascripts/discourse/templates/components/categories-boxes.hbs
@@ -1,5 +1,6 @@
 {{#each categories as |c|}}
-  <div class='category category-box category-box-{{unbound c.slug}}' style={{border-color c.color}} data-url={{c.url}}>
+  <div class='category category-box category-box-{{unbound c.slug}}' style={{border-color c.color}}
+   data-url={{c.url}}>
     <div class='category-box-inner'>
       <div class="category-logo">
         {{#if c.uploaded_logo.url}}
@@ -12,12 +13,14 @@
       </div>
       <div class="category-details">
         <div class='category-box-heading'>
-          <h3>
-            {{#if c.read_restricted}}
-              {{d-icon 'lock'}}
-            {{/if}}
-            {{c.name}}
-          </h3>
+          <a href={{c.url}}>
+            <h3>
+              {{#if c.read_restricted}}
+                {{d-icon 'lock'}}
+              {{/if}}
+              {{c.name}}
+            </h3>
+          </a>
         </div>
 
         <div class='description'>
@@ -43,4 +46,4 @@
       </div>
     </div>
   </div>
-{{/each}}
+{{/each}}
\ No newline at end of file

GitHub sha: c1b58613

This commit has been mentioned on Discourse Meta. There might be relevant details there: