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'>
|
<span class='website-name'>
|
||||||
{{fa-icon "globe"}}
|
{{fa-icon "globe"}}
|
||||||
{{#if linkWebsite}}
|
{{#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}}
|
{{else}}
|
||||||
<span title={{user.website}}>{{user.website_name}}</span>
|
<span title={{user.website}}>{{user.website_name}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
{{#if model.website_name}}
|
{{#if model.website_name}}
|
||||||
{{fa-icon "globe"}}
|
{{fa-icon "globe"}}
|
||||||
{{#if linkWebsite}}
|
{{#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}}
|
{{else}}
|
||||||
<span title={{model.website}}>{{model.website_name}}</span>
|
<span title={{model.website}}>{{model.website_name}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -106,7 +106,7 @@
|
||||||
<a class='domain'
|
<a class='domain'
|
||||||
href='{{unbound link.url}}'
|
href='{{unbound link.url}}'
|
||||||
title='{{unbound link.title}}'
|
title='{{unbound link.title}}'
|
||||||
rel='{{unless user.removeNoFollow 'nofollow'}}'
|
rel='{{unless user.removeNoFollow 'nofollow noopener'}}'
|
||||||
target='_blank'>
|
target='_blank'>
|
||||||
{{shorten-url link.url}}
|
{{shorten-url link.url}}
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user