mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-12-02 05:19:17 -06:00
Fix homagepage redirection
This commit is contained in:
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
Block a user