bozdoz / wp-plugin-leaflet-map

Add leaflet maps to Wordpress with shortcodes
https://wordpress.org/plugins/leaflet-map/
GNU General Public License v2.0
140 stars 71 forks source link

tileurl ampersand translated to HTML entity & #145

Closed sigg3 closed 2 years ago

sigg3 commented 2 years ago

Using a custom tileurl, such as this one:

tileurl=https://opencache2.statkart.no/gatekeeper/gk/gk.open_gmaps?layers=norgeskart_bakgrunn&zoom={z}&x={x}&y={y}

without quotes, with single or double quotes around the URL fail on Wordpress 5.8.

The console shows a REQUEST URL equal to layers=norgestkart_bakgrunn&=zoom...&x=... with the & entity ref code instead of actual ampersand symbol.

sigg3 commented 2 years ago

SOLUTION:

In the classical editor, switch from "visual" to "text" editor and remove the amp; part from the ampersands, then update.

Leaving this note for other noobs like me :)