aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--client/src/app/app.component.html2
-rw-r--r--client/src/app/app.component.ts10
2 files changed, 10 insertions, 2 deletions
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 @@
10 <span class="icon icon-menu"></span> 10 <span class="icon icon-menu"></span>
11 </span> 11 </span>
12 12
13 <a class="peertube-title c-hand" [routerLink]="getDefaultRoute()"> 13 <a class="peertube-title c-hand" [routerLink]="getDefaultRoute()" [queryParams]="getDefaultRouteQuery()">
14 <span class="icon icon-logo"></span> 14 <span class="icon icon-logo"></span>
15 <span class="instance-name">{{ instanceName }}</span> 15 <span class="instance-name">{{ instanceName }}</span>
16 </a> 16 </a>
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 {
131 this.pluginService.initializeCustomModal(this.customModal) 131 this.pluginService.initializeCustomModal(this.customModal)
132 } 132 }
133 133
134 // ---------------------------------------------------------------------------
135
134 getDefaultRoute () { 136 getDefaultRoute () {
135 return this.redirectService.getDefaultRoute() 137 return this.redirectService.getDefaultRoute().split('?')[0]
138 }
139
140 getDefaultRouteQuery () {
141 return this.router.parseUrl(this.redirectService.getDefaultRoute()).queryParams
136 } 142 }
137 143
144 // ---------------------------------------------------------------------------
145
138 getToggleTitle () { 146 getToggleTitle () {
139 if (this.menu.isDisplayed()) return $localize`Close the left menu` 147 if (this.menu.isDisplayed()) return $localize`Close the left menu`
140 148