Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix homagepage redirection

Chocobozzzc7bfd4532ea5
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts
index 346e966e51..f95103365e 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()
}