Remove resume parameter when sharing a video
authorChocobozzz <me@florianbigard.com>
Mon, 10 Feb 2020 15:49:40 +0000 (16:49 +0100)
committerChocobozzz <me@florianbigard.com>
Mon, 10 Feb 2020 15:49:40 +0000 (16:49 +0100)
client/src/app/videos/+video-watch/modal/video-share.component.ts
client/src/assets/player/utils.ts

index a2b38b3a07069a4ce16cd31fd67826c065f1c42e..6bc9b09fa8bb05d8a442294d6526fd70c211b70d 100644 (file)
@@ -1,8 +1,6 @@
 import { Component, ElementRef, Input, ViewChild } from '@angular/core'
-import { Notifier } from '@app/core'
 import { VideoDetails } from '../../../shared/video/video-details.model'
 import { buildVideoEmbed, buildVideoLink } from '../../../../assets/player/utils'
-import { I18n } from '@ngx-translate/i18n-polyfill'
 import { NgbModal, NgbTabChangeEvent } from '@ng-bootstrap/ng-bootstrap'
 import { VideoCaption } from '@shared/models'
 import { VideoPlaylist } from '@app/shared/video-playlist/video-playlist.model'
index 38f2482ebbe607233718790d8eb368f3aaaa82d4..fa902e1f1822dd3a7d18f76b7c26fedd3c0cf3ce 100644 (file)
@@ -51,8 +51,9 @@ function buildVideoLink (options: {
     : window.location.origin + window.location.pathname.replace('/embed/', '/watch/')
 
   const params = new URLSearchParams(window.location.search)
-  // Remove this unused parameter when we are on a playlist page
+  // Remove these unused parameters when we are on a playlist page
   params.delete('videoId')
+  params.delete('resume')
 
   if (options.startTime) {
     const startTimeInt = Math.floor(options.startTime)