diff --git a/pygeoapi/templates/items.html b/pygeoapi/templates/items.html
index 90a7bd3..c3d6c21 100644
--- a/pygeoapi/templates/items.html
+++ b/pygeoapi/templates/items.html
@@ -82,8 +82,9 @@
var geojson_data = {{ data['features'] |to_json }};
var items = new L.GeoJSON(geojson_data, {
onEachFeature: function (feature, layer) {
- var html_ = '' + feature.id + '';
- layer.bindPopup(html_);
+ var url = '{{ data['items_path'] }}/' + feature.id + '?f=html';
+ var html = '' + feature.id + '';
+ layer.bindPopup(html);
}
});