mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Component/NewsPanel: Add rel="noopener" to NewsPanel links (#28379)
This commit is contained in:
parent
64304dafce
commit
1dd65456a3
@ -77,7 +77,7 @@ export class NewsPanel extends PureComponent<Props, State> {
|
||||
{news.map((item, index) => {
|
||||
return (
|
||||
<div key={index} className={styles.item}>
|
||||
<a href={textUtil.sanitizeUrl(item.link)} target="_blank">
|
||||
<a href={textUtil.sanitizeUrl(item.link)} target="_blank" rel="noopener">
|
||||
<div className={styles.title}>{item.title}</div>
|
||||
<div className={styles.date}>{dateTimeFormat(item.date, { format: 'MMM DD' })} </div>
|
||||
</a>
|
||||
|
Loading…
Reference in New Issue
Block a user