From ce078f2e80b1902fe5e7bbbfd4dbca27f8d00945 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Tue, 4 Oct 2022 17:11:21 +0200 Subject: [PATCH] Fix opening empty browser window when clicking osm marker --- .../Resources/Private/Assets/js/controllers/osm_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/controllers/osm_controller.js b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/controllers/osm_controller.js index 47f6f49d..57e5dc65 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/controllers/osm_controller.js +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/controllers/osm_controller.js @@ -20,7 +20,7 @@ export default class extends Controller { if (this.hasLatValue && this.hasLngValue) { const position = L.latLng(this.latValue, this.lngValue) const marker = L.marker(position) - if (this.hasExternalLinkValue) { + if (this.hasExternalLinkValue && '' !== this.externalLinkValue) { marker.on('click', () => { window.open(this.externalLinkValue, '_blank') })