diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-09-26 14:41:31 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-09-26 14:41:31 +0200 |
| commit | 2231a6e1c05b07bb7ec5906716aedec93d02429c (patch) | |
| tree | ed61d3045ca6cded5420ee6850bcc58ff6994848 /frontend/views/page/components/tile.handle.js | |
| parent | c2f2d222ebeee0862bdeb54e49b86c3c5cd14ee3 (diff) | |
fix bug in crud reducer
Diffstat (limited to 'frontend/views/page/components/tile.handle.js')
| -rw-r--r-- | frontend/views/page/components/tile.handle.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/frontend/views/page/components/tile.handle.js b/frontend/views/page/components/tile.handle.js index 9212dbb..e91f0b1 100644 --- a/frontend/views/page/components/tile.handle.js +++ b/frontend/views/page/components/tile.handle.js @@ -70,13 +70,14 @@ const TileHandle = ({ tile, bounds, box, viewing, onMouseDown, onDoubleClick }) if (viewing && tile.href) { if (tile.href.indexOf('http') === 0) { return ( - <div - className={className} - style={style} - onClick={() => window.open(tile.href, '_blank')} - > - {content} - </div> + <a href={tile.href} rel='noopener'> + <div + className={className} + style={style} + > + {content} + </div> + </a> ) } else { return ( |
