aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--client/src/assets/player/peertube-link-button.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/src/assets/player/peertube-link-button.ts b/client/src/assets/player/peertube-link-button.ts
index a47adc2db..54d802732 100644
--- a/client/src/assets/player/peertube-link-button.ts
+++ b/client/src/assets/player/peertube-link-button.ts
@@ -32,7 +32,10 @@ class PeerTubeLinkButton extends Button {
32 32
33 private buildHref (time?: number) { 33 private buildHref (time?: number) {
34 let href = window.location.href.replace('embed', 'watch') 34 let href = window.location.href.replace('embed', 'watch')
35 if (time) href += '?start=' + time 35 if (time) {
36 if (window.location.search) href += '&start=' + time
37 else href += '?start=' + time
38 }
36 39
37 return href 40 return href
38 } 41 }