var sTitleEscaped = Handlebars.escapeExpression(sTitle || sOSMType + ' ' + aFeature.osm_id);
+ var sURL = 'details.html?osmtype=' + aFeature.osm_type + '&osmid=' + aFeature.osm_id;
+ if (aFeature.category) {
+ sURL = sURL + '&class=' + aFeature.category;
+ }
+
return new Handlebars.SafeString(
- '<a href="details.html?osmtype=' + aFeature.osm_type + '&osmid=' + aFeature.osm_id + '&class=' + aFeature.category + '">' + sTitleEscaped + '</a>'
+ '<a href="' + sURL + '">' + sTitleEscaped + '</a>'
);
},
coverageType: function (aPlace) {
<td>{{this.rank_address}}</td>
<td>{{formatAdminLevel this.admin_level}}</td>
<td>{{formatDistance this.distance}}</td>
- <td>{{detailsLink this null}}</td>
+ <td>{{detailsPermaLink this 'details >'}}</td>
</tr>
{{/inline}}