From: Chocobozzz Date: Mon, 5 Jun 2023 08:33:35 +0000 (+0200) Subject: Fix custom default route link X-Git-Tag: v5.2.0~36 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=25d7cc3cb675de36fe67402e307e1ba02f3316bc;p=github%2FChocobozzz%2FPeerTube.git Fix custom default route link --- diff --git a/client/src/app/app.component.html b/client/src/app/app.component.html index 5fefffaf4..8ef22392d 100644 --- a/client/src/app/app.component.html +++ b/client/src/app/app.component.html @@ -10,7 +10,7 @@ - + {{ instanceName }} diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index da3ffef2f..f6d90cb64 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`