diff --git a/modules/farm/farm_map/farm_map.module b/modules/farm/farm_map/farm_map.module index 6d3a7a725..589a14487 100644 --- a/modules/farm/farm_map/farm_map.module +++ b/modules/farm/farm_map/farm_map.module @@ -140,7 +140,7 @@ function theme_farm_map(&$vars) { // We do this instead of using Drupal.settings.basePath in Javascript // because that variable does not take into account whether or not clean // URLs are enabled. - $settings['farm_map']['base_path'] = url(''); + $settings['farm_map']['base_path'] = str_replace('farm', '', url('farm')); // Load the system of measurement, and save it to settings. $system_of_measurement = farm_quantity_system_of_measurement();