]> git.openstreetmap.org Git - nominatim-ui.git/commitdiff
reverse results: link to detailpage with osm type and id, not place_id
authormarc tobias <mtmail@gmx.net>
Thu, 20 Feb 2020 17:20:51 +0000 (18:20 +0100)
committermarc tobias <mtmail@gmx.net>
Thu, 20 Feb 2020 17:20:51 +0000 (18:20 +0100)
src/templates/reversepage.hbs

index 646c72625b1b4d24b24d1730946a6e5102b23e44..80bd4bc8459325a3cc2995b9b4acaa3076b5dc4f 100644 (file)
@@ -10,7 +10,7 @@
     <span class="type">{{formatLabel aResult}}</span>
     <p class="coords">{{aResult.lat}},{{aResult.lon}}</p>  
 
-    <a class="btn btn-default btn-xs details" href="details.html?place_id={{aResult.place_id}}">details</a>
+    <a class="btn btn-default btn-xs details" href="details.html?osmtype={{shortOSMType aResult.osm_type}}&osmid={{aResult.osm_id}}">details</a>
   </div>
 {{/inline}}