diff --git a/demo/src/app/common/top-menu/top-menu.component.html b/demo/src/app/common/top-menu/top-menu.component.html index 3df41be25c..d58d183ffa 100644 --- a/demo/src/app/common/top-menu/top-menu.component.html +++ b/demo/src/app/common/top-menu/top-menu.component.html @@ -10,7 +10,7 @@

diff --git a/demo/src/app/common/top-menu/top-menu.component.ts b/demo/src/app/common/top-menu/top-menu.component.ts index 5403123d44..36c28bbb44 100644 --- a/demo/src/app/common/top-menu/top-menu.component.ts +++ b/demo/src/app/common/top-menu/top-menu.component.ts @@ -13,6 +13,7 @@ export class TopMenuComponent implements AfterViewInit { public currentVersion: string; public previousDocs: string[] = []; public isLocalhost = false; + public needPrefix = false; public constructor( private router: Router, @@ -22,6 +23,7 @@ export class TopMenuComponent implements AfterViewInit { public ngAfterViewInit(): any { // todo: remove this sh** this.isLocalhost = location.hostname === 'localhost'; + this.needPrefix = location.pathname !== '/'; const getUrl = (router: Router) => { const indexOfHash = router.routerState.snapshot.url.indexOf('#');