From: Chocobozzz Date: Thu, 1 Mar 2018 16:25:57 +0000 (+0100) Subject: Fix homagepage redirection X-Git-Tag: v1.0.0-alpha.2~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c7bfd4532ea5783be525525c8260159497cb0f64;p=oweals%2Fpeertube.git Fix homagepage redirection --- 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() }