Fix homagepage redirection

pull/322/head
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
1 changed files with 2 additions and 1 deletions

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