erblint: add rel=noopener to links that open in a new tab
authorTom Hughes <tom@compton.nu>
Wed, 27 Mar 2019 19:11:49 +0000 (19:11 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 27 Mar 2019 19:11:49 +0000 (19:11 +0000)
.erb-lint.yml
app/views/notifier/_message_body.html.erb

index 25811bccdbf45d76883771d90d2ee19d291acd24..d0ccb0c0df908945d325a9cc1ffed501141c5e8b 100644 (file)
@@ -29,7 +29,5 @@ linters:
         Enabled: false # TODO
       Layout/LeadingBlankLines:
         Enabled: false # TODO
-      Rails/LinkToBlank:
-        Enabled: false # TODO
 exclude:
   - '**/vendor/**'
index 29bd3e06372f2177af38f13e53da47f8b5c33f95..f8a4e262127b06f86ba801bffa2ba801933ffd10 100644 (file)
@@ -11,7 +11,7 @@
               :border => 0
             ),
             user_url(@author),
-            :target => "_blank"
+            :target => "_blank", :rel => "noopener"
           ) %>
     </td>
     <td style="text-align: left; vertical-align: top; padding-right: 10px; width: 100%">