From b3af793a2184643576689965994abbcc11303fe1 Mon Sep 17 00:00:00 2001 From: ISA Date: Fri, 12 Jul 2024 10:50:21 +0200 Subject: [PATCH] =?UTF-8?q?Station=20in=20neue=20tab=20=C3=B6ffnen,=20in?= =?UTF-8?q?=20Kontextmen=C3=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/contextMenuUtils.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/contextMenuUtils.js b/utils/contextMenuUtils.js index 4b7039ebb..292fdb8ae 100644 --- a/utils/contextMenuUtils.js +++ b/utils/contextMenuUtils.js @@ -1,4 +1,5 @@ // contextMenuUtils.js +import { BASE_URL } from "../config/urls"; export function addContextMenuToMarker(marker) { marker.unbindContextMenu(); // Entferne das Kontextmenü, um Duplikate zu vermeiden @@ -21,6 +22,7 @@ export function addContextMenuToMarker(marker) { } // Funktion zum Öffnen in einem neuen Tab export function openInNewTab(e, marker) { + const baseUrl = BASE_URL; if (marker && marker.options && marker.options.link) { //console.log("Marker data:", baseUrl + marker.options.link); window.open(baseUrl + marker.options.link, "_blank");