diff options
Diffstat (limited to 'frontend/views/page/components')
| -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 ( |
