diff --git a/aio/src/app/app.component.spec.ts b/aio/src/app/app.component.spec.ts index 52c508c911..3380a7f281 100644 --- a/aio/src/app/app.component.spec.ts +++ b/aio/src/app/app.component.spec.ts @@ -837,6 +837,10 @@ describe('AppComponent', () => { initializeTest(false); verifyNoRedirection(); + createTestingModule('start', mode); + initializeTest(false); + verifyNoRedirection(); + createTestingModule('tutorial', mode); initializeTest(false); verifyNoRedirection(); @@ -849,6 +853,10 @@ describe('AppComponent', () => { initializeTest(false); verifyNoRedirection(); + createTestingModule('cli', mode); + initializeTest(false); + verifyNoRedirection(); + createTestingModule('api', mode); initializeTest(false); verifyNoRedirection(); diff --git a/aio/src/app/app.component.ts b/aio/src/app/app.component.ts index f904e14a72..bd30f08b93 100644 --- a/aio/src/app/app.component.ts +++ b/aio/src/app/app.component.ts @@ -122,7 +122,7 @@ export class AppComponent implements OnInit { this.locationService.currentPath.subscribe(path => { // Redirect to docs if we are in archive mode and are not hitting a docs page // (i.e. we have arrived at a marketing page) - if (this.deployment.mode === 'archive' && !/^(docs$|api|guide|tutorial)/.test(path)) { + if (this.deployment.mode === 'archive' && !/^(docs$|api|cli|guide|start|tutorial)/.test(path)) { this.locationService.replace('docs'); } if (path === this.currentPath) {