Skip to content

Commit

Permalink
noreferrer
Browse files Browse the repository at this point in the history
  • Loading branch information
mboudet committed Sep 16, 2021
1 parent cc9003c commit 4390f20
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion askomics/react/src/routes/data/data.jsx
Expand Up @@ -79,7 +79,7 @@ class Data extends Component {
if (cell.startsWith(this.props.config.namespaceInternal)){
return this.utils.splitUrl(cell)
} else {
return <a href={cell} target="_blank">{this.utils.splitUrl(cell)}</a>
return <a href={cell} target="_blank" rel="noreferrer">{this.utils.splitUrl(cell)}</a>
}
}
return cell
Expand Down
2 changes: 1 addition & 1 deletion askomics/react/src/routes/integration/csvtable.jsx
Expand Up @@ -224,7 +224,7 @@ export default class CsvTable extends Component {
formatter: (cell, row) => {
let text = row[this.state.header[index]["name"]]
if (this.utils.isUrl(text)) {
return <a href={text} target="_blank">{this.utils.truncate(this.utils.splitUrl(text), 25)}</a>
return <a href={text} target="_blank" rel="noreferrer">{this.utils.truncate(this.utils.splitUrl(text), 25)}</a>
} else {
return this.utils.truncate(text, 25)
}
Expand Down
2 changes: 1 addition & 1 deletion askomics/react/src/routes/sparql/resultstable.jsx
Expand Up @@ -59,7 +59,7 @@ export default class ResultsTable extends Component {
index: index,
formatter: (cell, row) => {
if (this.utils.isUrl(cell)) {
return <a href={cell} target="_blank">{this.utils.splitUrl(cell)}</a>
return <a href={cell} target="_blank" rel="noreferrer">{this.utils.splitUrl(cell)}</a>
}
return cell
},
Expand Down

0 comments on commit 4390f20

Please sign in to comment.