- Issue created by @Rewted
I recently upgraded from Durpal 9 to Drupal 10.4.4, and switched the Core Statistics to this Contributed module.
To switch I simply installed the contrib module and commented out the RewriteCond rule (shown below) in web/.htaccess as per the deprecated extension page β instruction.
# Allow access to Statistics module's custom front controller.
# Copy and adapt this rule to directly execute PHP files in contributed or
# custom modules or to run another PHP application in the same directory.
# RewriteCond %{REQUEST_URI} !/core/modules/statistics/statistics\.php$
Today, after updating Drupal 10.4.4 to 10.4.5, I noticed the rule was uncommented. On update [web-root]/.htaccess is overwritten with assets/scaffold/files/htaccess which is normal (I think).
Viewing assets/scaffold/files/htaccess I can see the line is in fact still uncommitted, but now that I am using the contrib module I expected it to be commented out as per the instructions: "The default .htaccess file changed to remove support for the Statistics module. The htaccess protection is now supplied by the contributed project. Sites using a custom .htaccess file should ensure that the rule, shown below, is removed from their own copy of the file."
Is my expectation of the RewriteCond rule to be commented in future updates a misunderstanding, or I've implemented incorrectly?
Also, Statistics are working regardless of the rule being commented or uncommented, so perhaps the instruction page is referring to the rule will be removed in Drupal 11?
Please advise, thank you.
Active
1.0
Code