]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-html.php
simplify getNearestRoadFeature function
[nominatim.git] / lib / template / search-html.php
index 53c6c88cfa88552134a4ffff5dbb2523cf936641..2b8c14951551b0f359d72518cd51e78484fb514e 100644 (file)
@@ -53,7 +53,7 @@
                     echo ' <span class="type">('.ucwords(str_replace('_',' ',$aResult['class'])).')</span>';
                 else
                     echo ' <span class="type">('.ucwords(str_replace('_',' ',$aResult['type'])).')</span>';
-                echo ' <a class="btn btn-default btn-xs details" href="details.php?place_id='.$aResult['place_id'].'">details</a>';
+                echo detailsPermaLink($aResult, 'details', 'class="btn btn-default btn-xs details"');
                 echo '</div>';
                 $i = $i+1;
             }