URL encode the place name in the google maps embeded api iframe

This commit is contained in:
Michael Hall 2018-04-27 23:21:46 -04:00
parent 6eecdbf4ee
commit 89b6de3651

View file

@ -41,7 +41,7 @@
width="720"
height="400"
frameborder="0" style="border:0"
src="https://www.google.com/maps/embed/v1/place?key={{ settings.GOOGLE_MAPS_API_KEY }}&q={{place.name}}%2C%20{{place.address|urlencode}}&zoom=17"
src="https://www.google.com/maps/embed/v1/place?key={{ settings.GOOGLE_MAPS_API_KEY }}&q={{place.name|urlencode}}%2C%20{{place.address|urlencode}}&zoom=17"
allowfullscreen>
</iframe>