Skip to main content
2 of 2
added 38 characters in body
Krishna Mohan
  • 6.3k
  • 9
  • 30
  • 55

There is a bug report for this @ https://www.drupal.org/node/2172871

A temporary fix available @ https://www.drupal.org/node/2172871#comment-10247397

No need to hack the core. Just add the below function in your theme or module.

/**
 * Implements hook_url_outbound_alter().
 *
 * Fix statistics path when i18n path prefix enabled
 * see: https://www.drupal.org/node/2172871
 */
function YOUR_THEME_OR MODULE_url_outbound_alter(&$path, &$options, $original_path) {
  if ($original_path === 'modules/statistics/statistics.php' && isset($options['prefix'])) {
    $options['prefix'] = '';
  }
}
Kevin Siji
  • 426
  • 4
  • 9