Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix resume video after peertube embed link click

Chocobozzzb4f8277cb650
diff --git a/client/src/assets/player/peertube-link-button.ts b/client/src/assets/player/peertube-link-button.ts
index a47adc2dba..54d8027325 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 {
private buildHref (time?: number) {
let href = window.location.href.replace('embed', 'watch')
- if (time) href += '?start=' + time
+ if (time) {
+ if (window.location.search) href += '&start=' + time
+ else href += '?start=' + time
+ }
return href
}