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 class="icon icon-menu"></span>
|
||||||
</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="icon icon-logo"></span>
|
||||||
<span class="instance-name">{{ instanceName }}</span>
|
<span class="instance-name">{{ instanceName }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -131,10 +131,18 @@ export class AppComponent implements OnInit, AfterViewInit {
|
||||||
this.pluginService.initializeCustomModal(this.customModal)
|
this.pluginService.initializeCustomModal(this.customModal)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
getDefaultRoute () {
|
getDefaultRoute () {
|
||||||
return this.redirectService.getDefaultRoute()
|
return this.redirectService.getDefaultRoute().split('?')[0]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getDefaultRouteQuery () {
|
||||||
|
return this.router.parseUrl(this.redirectService.getDefaultRoute()).queryParams
|
||||||
|
}
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
getToggleTitle () {
|
getToggleTitle () {
|
||||||
if (this.menu.isDisplayed()) return $localize`Close the left menu`
|
if (this.menu.isDisplayed()) return $localize`Close the left menu`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue