From c7bfd4532ea5783be525525c8260159497cb0f64 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 1 Mar 2018 17:25:57 +0100 Subject: Fix homagepage redirection --- client/src/app/app.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client/src/app/app.component.ts') diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index 346e966e5..f95103365 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts @@ -44,7 +44,8 @@ export class AppComponent implements OnInit { } ngOnInit () { - if (this.router.url === '/') { + const pathname = window.location.pathname + if (!pathname || pathname === '/') { this.redirectService.redirectToHomepage() } -- cgit v1.2.3