summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorOmar Roth <omarroth@protonmail.com>2019-06-16 13:14:56 -0500
committerOmar Roth <omarroth@protonmail.com>2019-06-16 13:14:56 -0500
commit2e1f9d5fa9d60239c8d912d94b63324c26cec4ee (patch)
treed9861b3b4e3c299cc84d3cb6f52f1f0c4784214e /assets
parent9dea2518625323e34ff5103135ac29114c9b3f82 (diff)
downloadinvidious-2e1f9d5fa9d60239c8d912d94b63324c26cec4ee.tar.gz
invidious-2e1f9d5fa9d60239c8d912d94b63324c26cec4ee.tar.bz2
invidious-2e1f9d5fa9d60239c8d912d94b63324c26cec4ee.zip
Fix title URL for embedded videos
Diffstat (limited to 'assets')
-rw-r--r--assets/js/player.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/assets/js/player.js b/assets/js/player.js
index 18fa940d..e0f37d2b 100644
--- a/assets/js/player.js
+++ b/assets/js/player.js
@@ -106,12 +106,12 @@ if (location.pathname.startsWith('/embed/')) {
player.overlay({
overlays: [{
start: 'loadstart',
- content: '<h1><a href="' + location.href + '">' + player_data.title + '</a></h1>',
+ content: '<h1><a href="' + location.origin + '/watch?v=' + video_data.id + '">' + player_data.title + '</a></h1>',
end: 'playing',
align: 'top'
}, {
start: 'pause',
- content: '<h1><a href="' + location.href + '">' + player_data.title + '</a></h1>',
+ content: '<h1><a href="' + location.origin + '/watch?v=' + video_data.id + '">' + player_data.title + '</a></h1>',
end: 'playing',
align: 'top'
}]