Expected (already working when requesting https://analytics.domain.com )
but doesn't work when eg requesting https://analytics.domain.com/index.php?module=API&action=home&idSite=1&period=day&date=yesterday
which was showing eg this
Adding another check for this case when a module is specified... In the past we didn't want find a need to fix it but it's easy to do. A test for this special case shouldn't be needed.