aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-01 17:25:57 +0100
committerChocobozzz <me@florianbigard.com>2018-03-01 17:25:57 +0100
commitc7bfd4532ea5783be525525c8260159497cb0f64 (patch)
tree4073cc2192063fee54a59cb6acb593010e68d965 /client
parent4919b6304f5b957fddbb37d8d9c6ca5c813b32f6 (diff)
downloadPeerTube-c7bfd4532ea5783be525525c8260159497cb0f64.tar.gz
PeerTube-c7bfd4532ea5783be525525c8260159497cb0f64.tar.zst
PeerTube-c7bfd4532ea5783be525525c8260159497cb0f64.zip
Fix homagepage redirection
Diffstat (limited to 'client')
-rw-r--r--client/src/app/app.component.ts3
1 files changed, 2 insertions, 1 deletions
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 {
44 } 44 }
45 45
46 ngOnInit () { 46 ngOnInit () {
47 if (this.router.url === '/') { 47 const pathname = window.location.pathname
48 if (!pathname || pathname === '/') {
48 this.redirectService.redirectToHomepage() 49 this.redirectService.redirectToHomepage()
49 } 50 }
50 51