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 25811bc..d0ccb0c 100644 (file)
@@ -29,7 +29,5 @@ linters:
         Enabled: false # TODO
       Layout/LeadingBlankLines:
         Enabled: false # TODO
-      Rails/LinkToBlank:
-        Enabled: false # TODO
 exclude:
   - '**/vendor/**'
index 29bd3e0..f8a4e26 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%">