]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Logo/title redirects to the default route
authorChocobozzz <me@florianbigard.com>
Wed, 21 Mar 2018 08:40:57 +0000 (09:40 +0100)
committerChocobozzz <me@florianbigard.com>
Wed, 21 Mar 2018 08:40:57 +0000 (09:40 +0100)
client/src/app/app.component.html
client/src/app/app.component.ts

index 268fa84a627060659510077e58a22c34f653d892..3ac84d55a04d8b3405279cf2f5b921c58e00486c 100644 (file)
@@ -6,7 +6,7 @@
     <div class="top-left-block" [ngClass]="{ 'border-bottom': isMenuDisplayed === false }">
       <span class="icon icon-menu" (click)="toggleMenu()"></span>
 
-      <a id="peertube-title" [routerLink]="['/videos/list']" title="Homepage">
+      <a id="peertube-title" [routerLink]="defaultRoute" title="Homepage">
         <span class="icon icon-logo"></span>
         <span class="instance-name">{{ instanceName }}</span>
       </a>
index 84435b5dbddcfddc2ab03228bc3b3adcb859c7b9..b9f7be48cff867d8def1bddd636c349677082319 100644 (file)
@@ -43,6 +43,10 @@ export class AppComponent implements OnInit {
     return this.serverService.getConfig().instance.name
   }
 
+  get defaultRoute () {
+    return RedirectService.DEFAULT_ROUTE
+  }
+
   ngOnInit () {
     document.getElementById('incompatible-browser').className += ' browser-ok'