Skip to content

Commit eb4b2f9

Browse files
authored
Merge pull request #2586 from PiyushChandra17/piyush/fix-file-preview-link
fix file preview link
2 parents f99eda0 + b3972e8 commit eb4b2f9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

client/modules/IDE/components/AssetList.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,16 @@ class AssetListRowBase extends React.Component {
107107
</button>
108108
</li>
109109
<li>
110-
<Link
111-
to={asset.url}
110+
<a
111+
href={asset.url}
112112
target="_blank"
113+
rel="noreferrer"
113114
onBlur={this.onBlurComponent}
114115
onFocus={this.onFocusComponent}
115116
className="asset-table__action-option"
116117
>
117118
{t('AssetList.OpenNewTab')}
118-
</Link>
119+
</a>
119120
</li>
120121
</ul>
121122
)}

0 commit comments

Comments
 (0)