Ajax POST to statistics.php fails when using i18n with path prefix language code

Created on 8 April 2014, about 10 years ago
Updated 3 May 2023, about 1 year ago

This is the Drupal 7 backport issue of #2172871: Async node hit counter data collection is broken when path-based language negotiation is used β†’ which has been fixed for Drupal 8!

On a multilingual site using i18n, with Statistics enabled with both the settings "Count content views" and "Use Ajax to increment the counter" tracking fails, receiving a 404 for the statistics.php request because the wrong URL is generated in statistics.module.

For example: When visiting a node in RUSSIAN (using "russian") as the language prefix, the XHR requests url:
http://www.example.com/russian/modules/statistics/statistics.php
Instead of:
http://www.example.com/modules/statistics/statistics.php

πŸ› Bug report
Status

Needs work

Version

7.0 ⚰️

Component
StatisticsΒ  β†’

Last updated 1 day ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States ericpugh

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024