Skip to content

Commit

Permalink
SonarCloud: add rel="noopener"
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Jun 28, 2024
1 parent 60d562d commit 96dc5a9
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions modules/material/themes/material/silauth/loginuserpass.twig
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
<a
href="{{ forgotPasswordUrl|e }}"
target="_blank"
rel="noopener"
class="mdl-button mdl-button--colored mdl-typography--caption"
>
{{ '{login:forgot}'|trans }}
Expand All @@ -125,14 +126,23 @@

<section layout-children="row" child-spacing="space-around">
{% if helpCenterUrl is defined and helpCenterUrl is not empty %}
<a href="{{ helpCenterUrl }}" target="_blank" class="mdl-button mdl-button--colored mdl-typography--body-2">
<a
href="{{ helpCenterUrl }}"
target="_blank"
rel="noopener"
class="mdl-button mdl-button--colored mdl-typography--body-2"
>
{{ '{login:help}'|trans }}
<i class="material-icons">launch</i>
</a>
{% endif %}

{% if profileUrl is defined and profileUrl is not empty %}
<a href="{{ profileUrl }}" target="_blank" class="mdl-button mdl-button--colored mdl-typography--body-2">
<a href="{{ profileUrl }}"
target="_blank"
rel="noopener"
class="mdl-button mdl-button--colored mdl-typography--body-2"
>
{{ '{login:profile}'|trans }}
<i class="material-icons">launch</i>
</a>
Expand Down

0 comments on commit 96dc5a9

Please sign in to comment.