]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/templates/searchpage.hbs
Merge pull request #40 from mtmail/navigation-to-details-index-page
[nominatim-ui.git] / src / templates / searchpage.hbs
index 65cfa28f245e39cda91b5c9becf34b34a0a8769f..6ed8203d8c0b674664496ef3d12b12faf661477b 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}}
 
@@ -20,6 +19,7 @@
       <a class="nav-link {{#if hStructured}}active{{/if}}" data-toggle="tab" href="#structured">structured</a>
     </li>
     <div class="search-type-link">
+      <a href="details.html" class="mr-2">search by id</a>
       <a id="switch-to-reverse" href="/reverse.html">reverse search</a>
     </div>
   </ul>