Rebuild SCSS files if frontend controller value changes

fixes #6271
This commit is contained in:
Julius Härtl 2017-09-03 17:30:16 +02:00
parent 0f71e3fba2
commit b09ce70117
No known key found for this signature in database
GPG key ID: 4C614C6ED2CDE6DF

View file

@ -303,6 +303,7 @@ class SCSSCacher {
* @return string
*/
private function prependBaseurlPrefix($cssFile) {
return md5($this->urlGenerator->getBaseUrl()) . '-' . $cssFile;
$frontendController = ($this->config->getSystemValue('htaccess.IgnoreFrontController', false) === true || getenv('front_controller_active') === 'true');
return md5($this->urlGenerator->getBaseUrl() . $frontendController) . '-' . $cssFile;
}
}