From ba86ab14ce6f58b7e54d0b42cb475276453636a3 Mon Sep 17 00:00:00 2001
From: Florent <florent@MacBook-Air-de-neogeo.local>
Date: Fri, 26 Nov 2021 15:00:35 +0100
Subject: [PATCH] fix feature url on map popup

---
 src/assets/js/map-util.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/assets/js/map-util.js b/src/assets/js/map-util.js
index 955d0df0..84dc6f60 100644
--- a/src/assets/js/map-util.js
+++ b/src/assets/js/map-util.js
@@ -6,6 +6,7 @@ import "leaflet/dist/leaflet.css";
 import flip from '@turf/flip'
 import axios from '@/axios-client.js';
 import "leaflet.vectorgrid";
+import store from '@/store';
 
 import { FillSymbolizer, PointSymbolizer, LineSymbolizer } from "@/assets/js/vector_tile_fix.js";
 
@@ -494,13 +495,13 @@ const mapUtil = {
 
     return `
 					<h4>
-						<a href="${feature_url}">${feature.properties.title}</a>
+						<a href="${store.state.configuration.BASE_URL.slice(0, -1)}${feature_url}">${feature.properties.title}</a>
 					</h4>
 					<div>
 						Statut : ${status}
 					</div>
 					<div>
-						Type : <a href="${feature_type_url}"> ${feature_type.title} </a>
+						Type : <a href="${store.state.configuration.BASE_URL.slice(0, -1)}${feature_type_url}"> ${feature_type.title} </a>
 					</div>
 					<div>
 						Dernière mise à jour : ${date_maj}
-- 
GitLab