From f98598718f4f2f6f2b81811a564b0fb697d13e3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Baylac-Jacqu=C3=A9?= Date: Tue, 22 Feb 2022 15:44:49 +0100 Subject: [PATCH] webapp: fix absolute links Some links were set as absolute. It's probablematic since we're deploying the application at tools.aquilenet.fr/ftth-ipe-map/ instead of the top-level of a sub-domain as I was expecting. --- webapp/templates/app.js | 2 +- webapp/templates/map.html | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/webapp/templates/app.js b/webapp/templates/app.js index c21977d..85e3e58 100644 --- a/webapp/templates/app.js +++ b/webapp/templates/app.js @@ -74,7 +74,7 @@ async function fetchEligData(map) { const bounds = map.getBounds(); const sw = bounds.getSouthWest(); const ne = bounds.getNorthEast(); - const reqUri = encodeURI(`/eligdata?swx=${sw.lng}&swy=${sw.lat}&nex=${ne.lng}&ney=${ne.lat}`); + const reqUri = encodeURI(`eligdata?swx=${sw.lng}&swy=${sw.lat}&nex=${ne.lng}&ney=${ne.lat}`); const source = await fetch(reqUri); const eligData = await source.json(); updateEligData(map, eligData); diff --git a/webapp/templates/map.html b/webapp/templates/map.html index 0398e7f..f013f97 100644 --- a/webapp/templates/map.html +++ b/webapp/templates/map.html @@ -9,15 +9,12 @@ - + - - + +