]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/templates/searchpage.hbs
detailsURL helper which replaces detailsLink and detailsPermaLink
[nominatim-ui.git] / src / templates / searchpage.hbs
index 65cfa28f245e39cda91b5c9becf34b34a0a8769f..4e675be3a0239a7228b47faff64cb12d73cd9055 100644 (file)
@@ -6,8 +6,7 @@
     <span class="type">({{formatLabel aResult}})</span>
     <p class="coords">{{aResult.lat}},{{aResult.lon}}</p>  
 
-    <a class="details btn btn-outline-secondary btn-sm"
-       href="details.html?osmtype={{shortOSMType aResult.osm_type}}&osmid={{aResult.osm_id}}">details</a>
+    <a class="details btn btn-outline-secondary btn-sm" href="{{detailsURL aResult}}">details</a>
   </div>
 {{/inline}}