diff --git a/src/core/features/siteplugins/components/module-index/core-siteplugins-module-index.html b/src/core/features/siteplugins/components/module-index/core-siteplugins-module-index.html
index 7eb7bd09a..b5cb3a882 100644
--- a/src/core/features/siteplugins/components/module-index/core-siteplugins-module-index.html
+++ b/src/core/features/siteplugins/components/module-index/core-siteplugins-module-index.html
@@ -6,7 +6,8 @@
-
+
this.updateCachedContent();
- this.onContentLoaded.emit({ refresh: !!refresh, success: true });
+ this.onContentLoaded.emit({ refresh: !!refresh, success: true, content: this.content });
} catch (error) {
// Make it think it's loaded - otherwise it sticks on 'loading' and stops navigation working.
this.content = '';
- this.onContentLoaded.emit({ refresh: !!refresh, success: false });
+ this.onContentLoaded.emit({ refresh: !!refresh, success: false, content: this.content });
CoreDomUtils.showErrorModalDefault(error, 'core.errorloadingcontent', true);
} finally {
@@ -282,4 +282,5 @@ export class CoreSitePluginsPluginContentComponent implements OnInit, DoCheck {
export type CoreSitePluginsPluginContentLoadedData = {
refresh: boolean;
success: boolean;
+ content: string;
};