aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-06-05 10:33:35 +0200
committerChocobozzz <me@florianbigard.com>2023-06-05 10:33:35 +0200
commit25d7cc3cb675de36fe67402e307e1ba02f3316bc (patch)
treeae3a0c80a5fe214ec516962b1eb856529b82fcc9 /client
parentae51278920aab47f1a04d66cb6fc06293fbb03c6 (diff)
downloadPeerTube-25d7cc3cb675de36fe67402e307e1ba02f3316bc.tar.gz
PeerTube-25d7cc3cb675de36fe67402e307e1ba02f3316bc.tar.zst
PeerTube-25d7cc3cb675de36fe67402e307e1ba02f3316bc.zip
Fix custom default route link
Diffstat (limited to 'client')
-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