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.
This commit is contained in:
Félix Baylac-Jacqué 2022-02-22 15:44:49 +01:00
parent 6308ae9cea
commit f98598718f
2 changed files with 4 additions and 7 deletions

View file

@ -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);

View file

@ -9,15 +9,12 @@
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin=""/>
<link rel="stylesheet" href="{{url_for('static', filename='style.css')}}"/>
<link rel="stylesheet" href="static/style.css"/>
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin=""></script>
<link
rel="stylesheet"
href="{{url_for('static', filename='vendor/trevorevre-autocomplete-js-style.css')}}"
/>
<script src="{{url_for('static', filename='vendor/trevorevre-autocomplete-js.min.js')}}"></script>
<link rel="stylesheet" href="static/vendor/trevorevre-autocomplete-js-style.css"/>
<script src="static/vendor/trevorevre-autocomplete-js.min.js"></script>
</head>
<body>