$headOffset = 0;
$config = \CRM_Core_Config::singleton();
if ($config->debug) {
+ // FIXME: The `resetLocationProviderHashPrefix.js` has to stay in sync with `\Civi\Angular\Page\Modules::buildAngularModules()`.
$res->addScriptFile('civicrm', 'ang/resetLocationProviderHashPrefix.js', 101, $this->getRegion(), FALSE);
foreach ($moduleNames as $moduleName) {
foreach ($this->angular->getResources($moduleName, 'css', 'cacheUrl') as $url) {
$moduleNames = $page->parseModuleNames($event->params['modules'] ?? NULL, $angular);
$event->mimeType = 'application/javascript';
$files = array_merge(
+ // FIXME: The `resetLocationProviderHashPrefix.js` has to stay in sync with `\Civi\Angular\AngularLoader::load()`.
[\Civi::resources()->getPath('civicrm', 'ang/resetLocationProviderHashPrefix.js')],
$angular->getResources($moduleNames, 'js', 'path')
);