From b4f8277cb6503bd889654f0e4f364627e9e00af9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 30 May 2018 10:49:27 +0200 Subject: Fix resume video after peertube embed link click --- client/src/assets/player/peertube-link-button.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'client/src/assets/player/peertube-link-button.ts') 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 { 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 } -- cgit v1.2.3