diff options
| author | 138138138 <78271024+138138138@users.noreply.github.com> | 2022-06-22 20:09:29 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-22 20:09:29 +0800 |
| commit | de740569257312ee9326f4ed3ca055c23cbb879d (patch) | |
| tree | 8a2a09e3cf97d7696357c0ba091b0a31654788a3 | |
| parent | 6c73614a47a5a88df45aa32fadb64e85595d2a18 (diff) | |
| download | invidious-de740569257312ee9326f4ed3ca055c23cbb879d.tar.gz invidious-de740569257312ee9326f4ed3ca055c23cbb879d.tar.bz2 invidious-de740569257312ee9326f4ed3ca055c23cbb879d.zip | |
Keep listen mode after related video click
When clicking the related videos, listen mode will be kept by passing listen=true/listen=false on the URL.
| -rw-r--r-- | src/invidious/views/watch.ecr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index d1fdcce2..c8f0e6f3 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -270,7 +270,7 @@ we're going to need to do it here in order to allow for translations. <% video.related_videos.each do |rv| %> <% if rv["id"]? %> - <a href="/watch?v=<%= rv["id"] %>"> + <a href="/watch?v=<%= rv["id"] %>&listen=<%= params.listen %>"> <% if !env.get("preferences").as(Preferences).thin_mode %> <div class="thumbnail"> <img loading="lazy" class="thumbnail" src="/vi/<%= rv["id"] %>/mqdefault.jpg"> |
