diff --git a/pygeoapi/templates/collections/items/index.html b/pygeoapi/templates/collections/items/index.html index 8ea5dcc..c680eca 100644 --- a/pygeoapi/templates/collections/items/index.html +++ b/pygeoapi/templates/collections/items/index.html @@ -404,6 +404,7 @@ ); geojson_data = split_polygons(geojson_data_original); + project_url = data['speckle_url'].split("/models")[0] var items = new L.GeoJSON(geojson_data, { filter: (feature) => { @@ -413,7 +414,7 @@ return new L.circleMarker(latlng) }, onEachFeature: function (feature, layer) { - var url = '{{ data['speckle_project_url'] }}/models/' + feature.id.split("_")[0] + var url = project_url + '/models/' + feature.id.split("_")[0] var html = '
' + feature['properties']['speckle_type'] + '
' + feature['properties']['text_html'] + '