ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix custom default route link
Chocobozzz25d7cc3cb675
diff --git a/client/src/app/app.component.html b/client/src/app/app.component.htmlindex 5fefffaf49..8ef22392d6 100644--- a/client/src/app/app.component.html+++ b/client/src/app/app.component.html@@ -10,7 +10,7 @@<span class="icon icon-menu"></span></span>- <a class="peertube-title c-hand" [routerLink]="getDefaultRoute()">+ <a class="peertube-title c-hand" [routerLink]="getDefaultRoute()" [queryParams]="getDefaultRouteQuery()"><span class="icon icon-logo"></span><span class="instance-name">{{ instanceName }}</span></a>diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.tsindex da3ffef2f7..f6d90cb648 100644--- a/client/src/app/app.component.ts+++ b/client/src/app/app.component.ts@@ -131,10 +131,18 @@ export class AppComponent implements OnInit, AfterViewInit {this.pluginService.initializeCustomModal(this.customModal)}+ // ---------------------------------------------------------------------------+getDefaultRoute () {- return this.redirectService.getDefaultRoute()+ return this.redirectService.getDefaultRoute().split('?')[0]+ }++ getDefaultRouteQuery () {+ return this.router.parseUrl(this.redirectService.getDefaultRoute()).queryParams}+ // ---------------------------------------------------------------------------+getToggleTitle () {if (this.menu.isDisplayed()) return $localize`Close the left menu`