Fix farm_map base_path JS setting to work without clean URLs.

This commit is contained in:
Michael Stenta 2020-07-15 11:53:54 -04:00
parent 3ef56dde35
commit fd867b6fbb
1 changed files with 1 additions and 1 deletions

View File

@ -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('<front>');
$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();