diff --git a/src/offline.php b/src/offline.php index 1d311f2..148a133 100644 --- a/src/offline.php +++ b/src/offline.php @@ -30,6 +30,12 @@ $wa = $doc->getWebAssetManager(); $params = $this->params ?: $app->getTemplate(true)->params; $direction = $this->direction ?: 'ltr'; +// Register the template's asset manifest (not auto-loaded in offline context) +$manifestPath = JPATH_ROOT . '/media/templates/site/' . $this->template . '/joomla.asset.json'; +if (is_file($manifestPath)) { + $wa->getRegistry()->addRegistryFile($manifestPath); +} + /* ----------------------- Load assets via WebAssetManager (matches index.php pattern) ------------------------ */