mirror of https://github.com/Chocobozzz/PeerTube
Fix homagepage redirection
parent
4919b6304f
commit
c7bfd4532e
|
@ -44,7 +44,8 @@ export class AppComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit () {
|
ngOnInit () {
|
||||||
if (this.router.url === '/') {
|
const pathname = window.location.pathname
|
||||||
|
if (!pathname || pathname === '/') {
|
||||||
this.redirectService.redirectToHomepage()
|
this.redirectService.redirectToHomepage()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue