Add nofollow to links outbound from software catalogue and profserv
authorMagnus Hagander <magnus@hagander.net>
Mon, 12 Sep 2022 15:46:44 +0000 (17:46 +0200)
committerMagnus Hagander <magnus@hagander.net>
Mon, 12 Sep 2022 15:46:44 +0000 (17:46 +0200)
This should've been done long ago but was clearly missed. As we don't
follow up on these links over their lifetime, they should absolutely be
marked as such.

templates/downloads/productlist.html
templates/profserv/list.html

index a6ace9e9ad71215f7350416581c86d0ca87f6a85..6633346417be654199616d40aac5b3a1d664d5d5 100644 (file)
@@ -9,7 +9,7 @@
 <p>{{category.blurb|safe}}</p>
 
 {% for product in products %}
-  <h2 class="news"><a href="{{product.url}}" target="_blank" rel="noopener">{{product.name}}</a></h2>
+  <h2 class="news"><a href="{{product.url}}" target="_blank" rel="noopener nofollow">{{product.name}}</a></h2>
   <table class="table table-striped product-table">
     <thead class="thead-light">
       <tr>
@@ -25,8 +25,8 @@
         <td>{{product.description|markdown}}</td>
         <td>{{product.licencetype}}</td>
         <td>{{product.price}}</td>
-        <td><a href="{{product.org.url}}" target="_blank" rel="noopener">{{product.org.name}}</a></td>
-        <td><a href="{{product.url}}" target="_blank" rel="noopener">View</a></td>
+        <td><a href="{{product.org.url}}" target="_blank" rel="noopener nofollow">{{product.org.name}}</a></td>
+        <td><a href="{{product.url}}" target="_blank" rel="noopener nofollow">View</a></td>
       </tr>
     </tbody>
   </table>
index 1b8a844f4f356d78856757d4a03e4351aa3092d5..3c6a4701c8e481229e01533c00ba5da4273d437e 100644 (file)
@@ -13,7 +13,7 @@
       {% if s.url %}
          <tr>
           <th scope="row">Website</th>
-          <td><a href="{{s.url}}" target="_blank" rel="noopener">{{s.url}}</a></td>
+          <td><a href="{{s.url}}" target="_blank" rel="noopener nofollow">{{s.url}}</a></td>
          </tr>
       {% endif %}
       <tr>