mirror of https://github.com/Chocobozzz/PeerTube
Fix homagepage redirection
parent
4919b6304f
commit
c7bfd4532e
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue