Skip to content

Commit

Permalink
Merge pull request #41 from embeepea/master
Browse files Browse the repository at this point in the history
preserve time slider year in search results links
  • Loading branch information
embeepea authored Nov 13, 2020
2 parents 1234128 + 0660167 commit 0170194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mbgl-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ document.addEventListener("DOMContentLoaded", function(){
}

function searchResultsURL(item) {
return "/#" + zoomLevelForSearchResultsItem(item) + "/" + item.lat + "/" + item.lon;
return "/?year=" + currentYear + "#" + zoomLevelForSearchResultsItem(item) + "/" + item.lat + "/" + item.lon;
}


Expand Down

0 comments on commit 0170194

Please sign in to comment.