Fix homagepage redirection

This commit is contained in:
Chocobozzz 2018-03-01 17:25:57 +01:00
parent 4919b6304f
commit c7bfd4532e
No known key found for this signature in database
GPG Key ID: 583A612D890159BE

View 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()
}