aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-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