Skip to content

Commit

Permalink
Append the note ID to "view note" link text
Browse files Browse the repository at this point in the history
It can be helpful to easily read the ID from the app.

Also change http to https in the URL.
  • Loading branch information
marcows committed Apr 4, 2023
1 parent 8499f50 commit fd684c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.kml.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function geojson_feature_2_kml_placemark($geojson_feature, $colour_scheme) {
$description .= preg_replace('/\s+/', ' ', $comment['html']);
}
$note_id = $geojson_feature['properties']['id'];
$description .= "<a href=\"http://www.openstreetmap.org/note/$note_id\">view note</a>";
$description .= "<a href=\"https://www.openstreetmap.org/note/$note_id\">view note $note_id</a>";

if (count($geojson_feature['properties']['comments'])==0) {
// https://github.com/openstreetmap/openstreetmap-website/issues/1203
Expand Down

0 comments on commit fd684c0

Please sign in to comment.