]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/app.component.ts
Auto focus plugin search input
[github/Chocobozzz/PeerTube.git] / client / src / app / app.component.ts
index ca4b698991bb2d601d559ff46b60024cf199e2b8..66d871b4a502f896bb96ed1170cce642ffba685d 100644 (file)
@@ -66,8 +66,8 @@ export class AppComponent implements OnInit, AfterViewInit {
     return this.serverConfig.instance.name
   }
 
-  get defaultRoute () {
-    return RedirectService.DEFAULT_ROUTE
+  goToDefaultRoute () {
+    return this.router.navigateByUrl(RedirectService.DEFAULT_ROUTE)
   }
 
   ngOnInit () {