feat(aio): redirect marketing pages to docs if deploy mode is archive

See #18287
This commit is contained in:
Peter Bacon Darwin
2017-07-26 18:30:38 +01:00
committed by Victor Berchet
parent a5801b6020
commit 42ef1be75c
4 changed files with 101 additions and 0 deletions

View File

@ -10,6 +10,7 @@ export class MockLocationService {
go = jasmine.createSpy('Location.go').and
.callFake((url: string) => this.urlSubject.next(url));
goExternal = jasmine.createSpy('Location.goExternal');
replace = jasmine.createSpy('Location.replace');
handleAnchorClick = jasmine.createSpy('Location.handleAnchorClick')
.and.returnValue(false); // prevent click from causing a browser navigation