properly URL escape maps links

This commit is contained in:
David 2022-03-20 17:14:08 -04:00
parent 58a5ecafef
commit 70f56425cc
1 changed files with 3 additions and 2 deletions

View File

@ -562,13 +562,13 @@
<p>
View in:
<a
href="https://maps.google.com/maps?q={{& name}}+{{address}},{{city}},NY"
href="https://maps.google.com/maps?q={{nameURLEscaped}} {{address}},{{city}},NY"
target="_blank"
>Google Maps</a
>
{{#isAppleIsh}}
<a
href="http://maps.apple.com/?q={{& name}}&address={{address}},{{city}},NY"
href="http://maps.apple.com/?q={{nameURLEscaped}}&address={{address}},{{city}},NY"
target="_blank"
>Apple Maps</a
>
@ -618,6 +618,7 @@
value.slug = slugify(value.name);
value.cleanedWebsite = cleanWebsite(value.website);
value.isAppleIsh = isAppleIsh;
value.nameURLEscaped = encodeURIComponent(value.name);
});
$("#storeCount").html(data.length);
window.data = data;