From 98e5516f03a8a4975bc750b79d8e6071605ed051 Mon Sep 17 00:00:00 2001 From: Benjamin Ulrich <b.ulrich@adito.de> Date: Mon, 11 May 2020 08:40:09 +0000 Subject: [PATCH] Organisation_entity.openLocation.onActionProcess added one "/" to url so the organisation is the destination and not the startpoint --- .../entityfields/openlocation/onActionProcess.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/entity/Organisation_entity/entityfields/openlocation/onActionProcess.js b/entity/Organisation_entity/entityfields/openlocation/onActionProcess.js index 7645139357..1b94fd1785 100644 --- a/entity/Organisation_entity/entityfields/openlocation/onActionProcess.js +++ b/entity/Organisation_entity/entityfields/openlocation/onActionProcess.js @@ -13,6 +13,8 @@ addressData = newSelect("ADDRESS, BUILDINGNO, ZIP, CITY, COUNTRY") address.push(addressData.join("+")); -addressUrl = "https://www.google.com/maps/dir/" + address.join("/"); +addressUrl = "https://www.google.com/maps/dir//" + address.join("/"); +// the two slashes after dir are needed, because google uses those to specify whether the address is the startpoint +// or the location of the route. We need two, because we want the location of the organisation as the destination. neon.openUrl(addressUrl, true); \ No newline at end of file -- GitLab