]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/app.component.ts
Use banner instead of modal for privacy concerns
[github/Chocobozzz/PeerTube.git] / 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()
     }