mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 23:33:40 +08:00
FIX: add noopener to website field in user profile
This commit is contained in:
parent
887e9af84f
commit
240c4870cf
|
@ -78,7 +78,7 @@
|
|||
<span class='website-name'>
|
||||
{{fa-icon "globe"}}
|
||||
{{#if linkWebsite}}
|
||||
<a href={{user.website}} rel={{unless removeNoFollow 'nofollow'}} target="_blank">{{user.website_name}}</a>
|
||||
<a href={{user.website}} rel={{unless removeNoFollow 'nofollow noopener'}} target="_blank">{{user.website_name}}</a>
|
||||
{{else}}
|
||||
<span title={{user.website}}>{{user.website_name}}</span>
|
||||
{{/if}}
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
{{#if model.website_name}}
|
||||
{{fa-icon "globe"}}
|
||||
{{#if linkWebsite}}
|
||||
<a href={{model.website}} rel={{unless removeNoFollow 'nofollow'}} target="_blank">{{model.website_name}}</a>
|
||||
<a href={{model.website}} rel={{unless removeNoFollow 'nofollow noopener'}} target="_blank">{{model.website_name}}</a>
|
||||
{{else}}
|
||||
<span title={{model.website}}>{{model.website_name}}</span>
|
||||
{{/if}}
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
<a class='domain'
|
||||
href='{{unbound link.url}}'
|
||||
title='{{unbound link.title}}'
|
||||
rel='{{unless user.removeNoFollow 'nofollow'}}'
|
||||
rel='{{unless user.removeNoFollow 'nofollow noopener'}}'
|
||||
target='_blank'>
|
||||
{{shorten-url link.url}}
|
||||
</a>
|
||||
|
|
Loading…
Reference in New Issue
Block a user