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() }