Querystring removal and google maps api key
-
Hi,
I noticed after upgrading several sites to latest version of FVM that on newer sites google maps no longer load and the missingapikey message is present in the dev console.
When FVM is active is appears to strip out the querystring so… for example
//maps.google.com/maps/api/js?key=AIzaSyAaLhi7XNuvb2Jg3k4jh5kjhyNKri0zRD
becomes
//maps.google.com/maps/api/js
As a result the api key is never sent and the maps don’t load. Of course only a problem for sites that were not using google maps prior to google’s requirement to use an api key.
Only solution i have at present is to hard code the url into the theme.
Is there anyway to stop this from being stripped out? For information, i’m using “WP Google Maps” plugin to generate the maps. Although it also performs the same action when i try to add the “API KEY for Google Maps” plugin
Thanks!
- The topic ‘Querystring removal and google maps api key’ is closed to new replies.