Skip to content

Commit

Permalink
handle / prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed May 17, 2023
1 parent 5ce2e34 commit 798f351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion videos/watch.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ layout: base

<script type="text/javascript">
var params = (new URL(document.location)).searchParams,
videoid = params.get('v'),
videoid = params.get('v').startsWith('/') ? params.get('v').substring(1) : params.get('v'),
seekTo = params.get('t'),
videohost = 'https://training.galaxyproject.org',
vtt = `${videohost}/videos/topics/${videoid}.en.vtt`,
Expand Down

0 comments on commit 798f351

Please sign in to comment.