//= require index/home
//= require router
-$(document).ready(function () {
+$(function () {
const map = new L.OSM.Map("map", {
zoomControl: false,
layerControl: false,
return;
}
+ // Open local anchor links as normal.
+ if ($(this).attr("href")?.startsWith("#")) {
+ return;
+ }
+
// Ignore cross-protocol and cross-origin links.
if (location.protocol !== this.protocol || location.host !== this.host) {
return;