diff --git a/src/rendering/navigation-renderer.ts b/src/rendering/navigation-renderer.ts index 40389b6..96edc9a 100644 --- a/src/rendering/navigation-renderer.ts +++ b/src/rendering/navigation-renderer.ts @@ -136,7 +136,8 @@ export class NavigationRenderer { private _removeGlobalsNavigationItem(event: PageEvent): void { if (this._options.replaceGlobalsPage) { for (let i = 0; i < event.navigation.children.length; i++) { - if (event.navigation.children[i].isGlobals) { + let children = event.navigation.children[i]; + if (children.isGlobals || children.isModules) { event.navigation.children.splice(i, 1); } } diff --git a/src/rendering/page-renderer.ts b/src/rendering/page-renderer.ts index 5bde2fb..ddc78df 100644 --- a/src/rendering/page-renderer.ts +++ b/src/rendering/page-renderer.ts @@ -64,7 +64,7 @@ export class PageRenderer { } private _getGlobalsUrlMapping(event: RendererEvent): UrlMapping { - return event.urls.filter((mapping: UrlMapping): boolean => mapping.url === "globals.html")[0]; + return event.urls.filter((mapping: UrlMapping): boolean => mapping.url === "globals.html" || mapping.url==="modules.html")[0]; } /**