]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix homagepage redirection
authorChocobozzz <me@florianbigard.com>
Thu, 1 Mar 2018 16:25:57 +0000 (17:25 +0100)
committerChocobozzz <me@florianbigard.com>
Thu, 1 Mar 2018 16:25:57 +0000 (17:25 +0100)
client/src/app/app.component.ts

index 346e966e5189f665ec14aabd9b08f8c89fa1f60c..f95103365e73822af9a3903e18ed1b9a82caea48 100644 (file)
@@ -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()
     }