Fix custom default route link
This commit is contained in:
parent
ae51278920
commit
25d7cc3cb6
|
@ -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>
|
||||
|
|
|
@ -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`
|
||||
|
||||
|
|
Loading…
Reference in New Issue