Open diligentDE opened 5 years ago
The fix is to change the address in all the .tpl files located at /modules/jjwg_Maps/tpls/ These files are used to build the links.
/modules/jjwg_Maps/tpls/LeadsInfoWindow.tpl /modules/jjwg_Maps/tpls/InfoWindow.tpl
Tested on SuiteCRM Version 7.10.10
To update the JJWD code, search and replace the following strings:
Google Maps View Search: maps.googleapis.com/maps?q= Replace: www.google.com/maps/search/?api=1&query=
Get Directions Search: maps.googleapis.com/maps?saddr= Replace: www.google.com/maps/dir/?api=1&origin=
Search: &daddr= Replace: &destination=
Only impacts files in the folder jjwg_Maps/tpls
@lhommedelecosse thanks!
Better yet, move that property into the configuration file and replace every instance with a reference to it.
This issue has been mentioned on SuiteCRM. There might be relevant details there:
https://community.suitecrm.com/t/google-maps-view-and-get-directions-not-working/82816/3
@lhommedelecosse thanks!
Better yet, move that property into the configuration file and replace every instance with a reference to it.
While a good idea this should probably be tackled as an upgrade to use leafletjs & leaflet-geosearch and allow ability to use other search engines other than Google.
This issue has been mentioned on SuiteCRM. There might be relevant details there:
https://community.suitecrm.com/t/google-maps-view-and-get-directions-not-working/82816/4
Issue
http://maps.googleapis.com/maps?saddr=some¶meters
and the browser returns a 404 pageExpected Behavior
maps.google.com
, for examplehttp://maps.google.com/maps?saddr=some¶meters
Actual Behavior
http://maps.googleapis.com
Your Environment